Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
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 | Math/UnrealMathUtility.h | |
static double RoundHalfFromZero
(
double F |
Math/UnrealMathUtility.h |
RoundHalfFromZero(float)
Description
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
| Name | RoundHalfFromZero |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static float RoundHalfFromZero
(
float F
)
The rounded integer
Parameters
| Name | Remarks |
|---|---|
| F | Floating point value to convert |
RoundHalfFromZero(double)
| Name | RoundHalfFromZero |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static double RoundHalfFromZero
(
double F
)