Core Function ldexp
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> ldexp( <m>, <n> ) </pre> === Description === Returns the value of m * 2^n. === Parameters === ==== m ==== Any valid numeric expression. Can optionally be an array whi...") |
(→n) |
||
Line 18: | Line 18: | ||
Optional; Any valid numeric expression. | Optional; Any valid numeric expression. | ||
+ | |||
+ | Can only be left out if the <m> is an array with two elements. | ||
=== Return Value === | === Return Value === |
Revision as of 06:52, 10 August 2014
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