%Power function


Old name
%PowerR


Function
The function returns the power of Arg1Arg2. The result is a real number.
Declaration
REAL %Power(
   REAL in Arg1, 
   REAL in Arg2
 )
Parameters
Arg1Variable, which power will be calculated.
Arg2Exponent.
Note

The function returns an undefined value if 

  • Arg1 < 0.0 and Arg2 is not a natural number from 0 to 1000
  • Arg1 = 0.0 and Arg2 < 0.0
  • The result overflows the range of real numbers
Napíšte komentár