# 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.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3539

    // Automatic Variable Declarations
    // Implementation
    return (Log2(lp_x)/Log2(lp_x2));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3539

    // Automatic Variable Declarations
    // Implementation
    return (Log2(lp_x)/Log2(lp_x2));
}