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 float RoundHalfFromZero
(
float F
)
Converts a floating point number to the nearest integer, equidistant ties go to the value which is further from zero: -0.5 becomes -1.0, 0.5 becomes 1.0
The rounded integer
Parameter |
Description |
---|---|
F |
Floating point value to convert |