PWR Function

The PWR function returns the value of one number raised to the power of a second number.

Format

PWR(expr1, expr2)

Parameter(s)

expr1

An expression evaluating to a numeric value.

expr2

An expression evaluating to the exponent to which expr1 is to be raised.

Description

The PWR function raises the first expression to the power of the second expression. Any number raised to the power of 0 returns 1.

Example

To assign MAX.LEN the value of 215, type:

MAX.LEN = PWR(2,15)

See Also

Statement and Function Reference