Calculating Exponents in Unreal

I made a C++ Actor class, made a blueprint version of that class, put an instance of the actor in an empty level, and put this into the BeginPlay function.

float eqResult{};
eqResult = pow(2, 24);
UE_LOG(LogTemp, Warning, TEXT(“2^24 = %f”), eqResult);

which showed this result in the log

LogTemp: Warning: 2^24 = 16777216.000000

1 Like

Looking good!

Privacy & Terms