Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/FMath > API/Runtime/Core/Math/FMath/TruncateToHalfIfClose
References
Module | Core |
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
&40;
double F,
double Tolerance
&41;
Remarks
Truncates a floating point number to half if closer than the given tolerance. The truncated value
Parameters
Name | Description |
---|---|
F | Floating point number to truncate |
Tolerance | Maximum allowed difference to 0.5 in order to truncate |