floatingDifference()

The system function MathLib.floatingDifference subtracts the second of two numbers from the first and returns the difference. The function is implemented using double-precision floating-point arithmetic.

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

Example

  result = MathLib.floatingDifference(myItem01,myItem02);

Related reference
EGL library MathLib

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