Core Function ldexp

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(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...")
Newer edit →

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.

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