exp2 - chung-leong/qb GitHub Wiki

exp2 - Exponential 2

float exp2( float $x )

exp2() calculates 2 raised to the power of x.

Parameters:

x - The exponent. It can be a scalar or an array.

Return Value:

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

Version

1.0 and above.