FMath::Floor

Converts an integral type to a nearest less or equal integer.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h

Include

#include "Math/UnrealMathUtility.h"

Syntax

template<typename IntegralType, typename TEnableIf< TIsIntegral< IntegralType >::Value >::Type *>
static IntegralType Floor
(
    IntegralType I
)

Remarks

Converts an integral type to a nearest less or equal integer. Unlike std::floor, it returns an IntegralType.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss