EXP2
Description
The EXP2 function is used to calculate the power of expr with base 2. This function accepts a parameter of type double and returns a result of type double.
Parameter Description
- expr (type double): The value for which the power needs to be calculated.
Return Result
Returns a value of type double, representing the power of expr with base 2.
Usage Example
Here are some examples of using the EXP2 function:
- Calculate 2 to the power of 3:
- Calculate -5 to the power of 2:
- Calculate 2 to the power of 0:
- Calculate the power of 2 for a series of values: