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