pow

To calculate the power of a number

The function returns the power of a base number using the exponent. If the exponent has the value 0.5, the result is the root of the base number.

Syntax

pow(number, number)

Return

number

Examples

pow(x,y) To calculate the power of a base x using the exponent y.

pow(4,3) 

Result: 64

pow(64,0.5) 

Result: 8

pow(64,1/3) 

Result: 3.9999999999999996

Last updated