I really enjoyed the Unity explanation, it’s nice to see how other APIs handle the same things. UE4 doesn’t seem to be that different from the way Unity does it.
Here is my code in UE4:
void UMathProblems::BeginPlay()
{
Super::BeginPlay();
float PowerBase = 2.0;
float PowerSuper = 24.0;
UE_LOG(LogTemp, Warning, TEXT("%f"), FMath::Pow(PowerBase, PowerSuper))
}
Output Log
LogTemp: Warning: 16777216.000000