Math.exp2

Math.exp2

Math.exp2

Function

Binary exponent. Returns 2 raised to the power of value.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueNumberYesNoneExponent.

Return value

TypeDescription
Int/FloatReturns 2 raised to the power of value. An Int is returned for integer results, and a Float for non-integer or non-finite results.

Example

Notes

  • Integer results return Int.