mathLib.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 integer.


mathLib.ldexp syntax diagram

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.

numericItem

Any numeric or HEX item, as described in Mathematical (system words). The item is converted to double-precision floating-point before result is calculated.

integer

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