--- layout: stdlib-reference --- # f32tof16\_ ## Description Convert to float16_t. ## Signature
half f32tof16_(float value);

vector<half, N> f32tof16_<int N>(vector<float, N> value);

## Generic Parameters #### N : int ## Parameters #### value : float #### value : [vector](../types/vector/index.html)\ ## Availability and Requirements Defined for the following targets: #### glsl Available in all stages. #### cuda Available in all stages. #### metal Available in all stages. #### wgsl Available in all stages. #### spirv Available in all stages.