Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math > FFloat16
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/Float16.h |
Include | #include "Math/Float16.h" |
void SetTruncate
&40;
float FP32Value
&41;
Remarks
NOTE: SetTruncate() on values out of F16 max range store them as +-Inf.
Convert from Fp32 to Fp16, truncating low bits. (backward-compatible conversion; was used by Set() previously) Clamps values out of range to [-MaxF16Float,MaxF16Float] Convert from Fp32 to Fp16, round-to-nearest-even. (RTNE) Stores values out of range as +-Inf