Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float Floor
(
float F |
Converts a float to a nearest less or equal integer. | Math/UnrealMathUtility.h | |
static double Floor
(
double F |
Converts a double to a nearest less or equal integer. | Math/UnrealMathUtility.h | |
static IntegralType Floor
(
IntegralType I |
Converts an integral type to a nearest less or equal integer. | Math/UnrealMathUtility.h |
Floor(float)
Description
Converts a float to a nearest less or equal integer.
| Name | Floor |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
static float Floor
(
float F
)
Floor(double)
Description
Converts a double to a nearest less or equal integer.
| Name | Floor |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
static double Floor
(
double F
)
Floor(IntegralType)
Description
Converts an integral type to a nearest less or equal integer. Unlike std::floor, it returns an IntegralType.
| Name | Floor |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
template<typename IntegralType, std::enable_if_t<(std::is_integral_v< IntegralType >), int >>
static IntegralType Floor
(
IntegralType I
)