floatingAssign()

The system function MathLib.floatingAssign returns numericItem as a double-precision floating-point number. The function assigns the value of BIN, DECIMAL, NUM, NUMC, or PACKF items to floating-point numbers that are defined as HEX items, and vice versa.

  MathLib.floatingAssign(numericField mathLibNumber in)
  returns (result mathLibTypeDependentResult)
result
Any numeric or HEX item, as described in Mathematical (system words). The floating-point number is converted to the format of result and returned in result.
numericField
Any numeric or HEX item, as described in Mathematical (system words). The item is converted to double-precision floating-point before being assigned to the result.

Example

  result = MathLib.floatingAssign(myItem);

Related reference
EGL library MathLib

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