Core Function ldexp
From Sputnik Wiki
ldexp( <m>, <n> )
Contents |
Description
Returns the value of m * 2^n.
Parameters
m
Any valid numeric expression.
Can optionally be an array which will also provide the <n> (A two value array)
n
Optional; Any valid numeric expression.
Can only be left out if the <m> is an array with two elements.
Return Value
Returns the value of m * 2^n.
Remarks
None.
Example
say ldexp (0.51060204851673, 81); // 1.23456e+024 say ldexp (frexp (23452345) ); // 23452345