[Solved] How to round floats? (0.234378996=0.23)

For anyone else coming here late to the game… the Float to Text to Float if you need it is:
float x = FCString::Atof(*FString::SanitizeFloat(FMath::FRandRange( min, max )).Left(precision + 2));

replace “FMath::FRandRange( min, max )” with your float.

1 Like