Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMath
Description
Converts a double to nearest int64 with ties rounding to nearest even May incur a performance penalty. Asserts on platforms that do not support this mode.
| Name | RoundToNearestTiesToEven |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
static int64 RoundToNearestTiesToEven
(
double F
)
The 64-bit integer closest to 'F', with ties going to the nearest even number
Parameters
| Name | Remarks |
|---|---|
| F | Double precision floating point value to convert |