Skip to main content

log2

Overloads

NameDescription
log2(real arg) -> realCalculates the base-2 logarithm of the given value.
log2(bool arg) -> realCalculates the base-2 logarithm of the given value.
log2(integer arg) -> realCalculates the base-2 logarithm of the given value.

log2(real arg) -> real

Calculates the base-2 logarithm of the given value.

Parameters

  • arg: The value to calculate the base-2 logarithm for.

log2(bool arg) -> real

Calculates the base-2 logarithm of the given value.

Parameters

  • arg: The value to calculate the base-2 logarithm for.

log2(integer arg) -> real

Calculates the base-2 logarithm of the given value.

Parameters

  • arg: The value to calculate the base-2 logarithm for.