Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float RoundHalfToZero
(
float F |
Converts a floating point number to the nearest integer, equidistant ties go to the value which is closer to zero: -0.5 becomes 0, 0.5 becomes 0 | Math/UnrealMathUtility.h | |
static double RoundHalfToZero
(
double F |
Math/UnrealMathUtility.h |
RoundHalfToZero(float)
Description
Converts a floating point number to the nearest integer, equidistant ties go to the value which is closer to zero: -0.5 becomes 0, 0.5 becomes 0
| Name | RoundHalfToZero |
| 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 RoundHalfToZero
(
float F
)
The rounded integer
Parameters
| Name | Remarks |
|---|---|
| F | Floating point value to convert |
RoundHalfToZero(double)
| Name | RoundHalfToZero |
| 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 RoundHalfToZero
(
double F
)