# Log2 (Real)

Grammar — Log2(x)
FlagsNative | Function

Returns the log base 2 of a number.

# Arguments

  • fixed — Value

Returns — fixed

native fixed Log2(fixed x);

Category: Math / Arithmetic

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// L3539
Log2(lp_x)
// L3539
Log2(lp_x2)