{ }Blueprint → C++

Unreal Engine 5 · Blueprint → C++

Min (Float) in Unreal Engine 5 C++

The Blueprint Min (Float) node maps to UKismetMathLibrary::FMin(A, B) in C++, returning the smaller of two float values.

Blueprint node & C++ equivalent

Min (Float) Blueprint node and its C++ equivalent in Unreal Engine 5
The “Min (Float)” Blueprint node.
C++
#include "Kismet/KismetMathLibrary.h"

float A;
float B;

float Min = UKismetMathLibrary::FMin(A, B);

What does the Min (Float) node do?

Min (Float) returns the lower of two floating-point numbers. Because floats need a distinct comparison helper, the C++ call is UKismetMathLibrary::FMin(A, B) rather than the integer Min. The leading F denotes the float overload, consistent with engine naming like FMath::Min.

The C++ equivalent

Include Kismet/KismetMathLibrary.h and call float Min = UKismetMathLibrary::FMin(A, B);. The templated FMath::Min(A, B) also handles floats and returns the same value, so either approach works in UE5.

Frequently asked questions

What is FMin in Unreal Engine 5?+

FMin is the float version of Min. UKismetMathLibrary::FMin(A, B) returns the smaller of two float values.

Why is it FMin and not Min for floats?+

Unreal uses the F prefix to mark float overloads in KismetMathLibrary, separating them from the integer Min. FMath::Min is templated and needs no such prefix.

Related Math nodes

View all Math nodes →