Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float TruncToFloat
(
float F |
Converts a float to an integer value with truncation towards zero. | GenericPlatform/GenericPlatformMath.h | |
static double TruncToFloat
(
double F |
GenericPlatform/GenericPlatformMath.h |
TruncToFloat(float)
Description
Converts a float to an integer value with truncation towards zero.
| Name | TruncToFloat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
static float TruncToFloat
(
float F
)
Truncated integer value.
Parameters
| Name | Remarks |
|---|---|
| F | Floating point value to convert |
TruncToFloat(double)
| Name | TruncToFloat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
static double TruncToFloat
(
double F
)