mathLib.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 syntax diagram

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.

numericItem1

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.

numericItem2

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
Mathematical (system words)