FMath::Log2

Computes the base 2 logarithm of the specified value

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h

Include

#include "Math/UnrealMathUtility.h"

Syntax

static float Log2
(
    float Value
)

Remarks

Computes the base 2 logarithm of the specified value

Returns

the base 2 log of the value

Parameters

Parameter

Description

Value

the value to perform the log on

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss