floatingSum()

The system function MathLib.floatingSum returns the sum of two numbers. The function is implemented using double-precision floating-point arithmetic.

  MathLib.floatingSum(
    numericField1 mathLibNumber in,
    numericField2 mathLibNumber in)
  returns (result mathLibTypeDependentResult)
result
Any numeric or HEX item, as described in Mathematical (system words). The sum 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 sum 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 sum is calculated.

Example

  result = MathLib.floatingSum(myItem01,myItem02);

Related reference
EGL library MathLib

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