Unreal Engine 5 · Blueprint → C++
Floor in Unreal Engine 5 C++
The Blueprint Floor node maps to FMath::FloorToInt(A) in C++, rounding a float down to the nearest int32.
Blueprint node & C++ equivalent

float A;
int32 Result = FMath::FloorToInt(A);What does the Floor node do?
Floor rounds a floating-point value down to the largest integer that is less than or equal to it. The C++ call FMath::FloorToInt(A) accepts a float and returns an int32. For example, 2.1 and 2.9 both become 2, while -2.1 floors to -3.
How to use it in C++
Write int32 Result = FMath::FloorToInt(A);. FMath ships with the engine core and is available in gameplay classes without an extra include. Use FMath::FloorToFloat(A) if you need the floored value kept as a float.
Frequently asked questions
What is the C++ equivalent of the Floor node in UE5?+
It is FMath::FloorToInt(A), which rounds a float down and returns an int32.
How does Floor handle negative numbers in Unreal?+
FMath::FloorToInt rounds toward negative infinity, so -2.1 becomes -3, not -2.