floatingMod()

The system function MathLib.floatingMod returns the floating-point remainder of one number divided by another. The result has the same sign as the numerator. A domain exception is raised if the denominator equals zero.

  MathLib.floatingMod(
    numericField1 mathLibNumber in,
    numericField2 mathLibNumber in)
  returns (result mathLibTypeDependentResult)
result
Any numeric or HEX item, as described in Mathematical (system words). The floating-point remainder 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.floatingMod(myItem01,myItem02);

Related reference
EGL library MathLib

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