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

float A;
int32 Result = FMath::CeilToInt(A);What does the Ceil node do?
Ceil rounds a floating-point value up to the smallest integer that is greater than or equal to it. In C++, FMath::CeilToInt(A) takes a float and returns an int32. For example, 2.1 and 2.9 both round up to 3, and -2.5 rounds up to -2.
The C++ equivalent
Call int32 Result = FMath::CeilToInt(A);. FMath is part of the engine core and generally needs no extra include in gameplay code. If you want a float result instead of an int, FMath::CeilToFloat(A) returns the rounded value as a float.
Frequently asked questions
What is the C++ equivalent of the Ceil node in UE5?+
It is FMath::CeilToInt(A), which rounds a float up and returns an int32.
Is there a float version of CeilToInt?+
Yes. FMath::CeilToFloat(A) rounds up but returns the result as a float rather than an int32.