Ldexp()

The system function MathLib.Ldexp returns the value of a specified number that is multiplied by the following value: two to the power of exponent.

  MathLib.Ldexp(
    numericField mathLibNumber in,
    exponent mathLibInteger in)
  returns (result mathLibTypeDependentResult)
result
Any numeric or HEX item, as described in Mathematical (system words). The calculated value 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 result is calculated.
exponent
Item defined as type INT or the following equivalent: type BIN with length 9 and no decimal places.

Example

  result = MathLib.Ldexp(myItem,myInteger);

Related reference
EGL library MathLib

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