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(
    numericField1 mathLibNumber in,
    numericField2 mathLibNumber in)
  returns (result mathLibTypeDependentResult)
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.
numericField1
Any numeric or HEX item, as described in Mathematical (system words). The item is converted to double-precision floating-point before result is calculated.
numericField2
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
EGL library MathLib

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.