FFloat16::SetWithoutBoundsChecks

Convert from Fp32 to Fp16 without doing any checks if the Fp32 exponent is too large or too small.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Float16.h

Include

#include "Math/Float16.h"

Syntax

void SetWithoutBoundsChecks
(
    const float FP32Value
)

Remarks

Convert from Fp32 to Fp16 without doing any checks if the Fp32 exponent is too large or too small. This is a faster alternative to Set() when you know the values within the single precision float don't need the checks.

Parameters

Parameter

Description

FP32Value

Single precision float to be set as half precision.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss