Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
Include |
#include "Math/UnrealMathUtility.h" |
Source |
/Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static double TruncateToHalfIfClose
(
double F,
double Tolerance
)
Truncates a floating point number to half if closer than the given tolerance.
The truncated value
Parameter |
Description |
---|---|
Value |
Floating point number to truncate |
Tolerance |
Maximum allowed difference to 0.5 in order to truncate |