3 methods to calculate powers

  1. C/C++
    I tested the powf command in Unreal, but it should work for C & C++ in general (if you include the appropriate headers).
void AMyActor::BeginPlay()
{
	Super::BeginPlay();
	UE_LOG(LogTemp, Warning, TEXT("2^24 = %f"), powf(2.0f, 24.0f));
}
  1. Unreal (Blueprints)
  2. R
2^24
2 Likes

Privacy & Terms