Core Function ldexp

From Sputnik Wiki
Revision as of 12:37, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox