log2 - chung-leong/qb GitHub Wiki

log2 - Base-2 logarithm

float log2( float $x )

log2() computes the base-2 logarithm of x.

Parameters:

x - The number to process. It can be a scalar or an array.

Return Value:

The logarithm of x to base 2. If x is an array, the return value will also be an array.

Version

1.0 and above.