Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int32 RoundToInt32
(
float F |
Converts a float to the nearest integer. Rounds up when the fraction is .5 | GenericPlatform/GenericPlatformMath.h | |
static int32 RoundToInt32
(
double F |
GenericPlatform/GenericPlatformMath.h |
RoundToInt32(float)
Description
Converts a float to the nearest integer. Rounds up when the fraction is .5
| Name | RoundToInt32 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
static int32 RoundToInt32
(
float F
)
The nearest integer to 'F'.
Parameters
| Name | Remarks |
|---|---|
| F | Floating point value to convert |
RoundToInt32(double)
| Name | RoundToInt32 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
static int32 RoundToInt32
(
double F
)