PWR function
Syntax
PWR (expression, power)
Description
Use the PWR function to return the value of expression raised to the power specified by power.
The PWR function operates like exponentiation (that is, PWR(X,Y) is the same as X**Y).
A negative value cannot be raised to a power that is not represented by an integer. If it is, the result of the function is PWR(-X,Y) and an error message is displayed.
If either expression or power is the null value, null is returned.
On overflow or underflow, a warning is printed and 0 is returned.
Example
A=3
B=PWR(5,A)
PRINT "B= ",B
This is the program output:
B= 125