mathLib.pow

The system function mathLib.pow returns a number raised to the power of a second number. A domain exception is raised if on pow(x,y) the value of x is negative and y is non-integral, or the value of x is 0.0 and y is negative.


mathLib.pow syntax diagram

result

Any numeric or HEX item, as described in Mathematical (system words). The result of the mathLib.pow function is converted to the format of result and returned in result.

numericItem1

Any numeric or HEX item, as described in Mathematical (system words). The item is converted to double-precision floating-point before result is calculated.

numericItem2

Any numeric or HEX item, as described in Mathematical (system words). The item is converted to double-precision floating-point before result is calculated.

Example

  result = mathLib.pow(myItem01,myItem02);

Related reference
Mathematical (system words)