FGenericPlatformMath::FloorToInt

Converts a float to a nearest less or equal integer.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static int32 FloorToInt
(
    float F
)

Remarks

Converts a float to a nearest less or equal integer.

Returns

An integer less or equal to 'F'.

Parameters

Parameter

Description

F

Floating point value to convert

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