math.ldexp()

Type Function
Library math.*
Return value Number
Revision 2017.3111
Keywords ldexp
See also math.frexp()

Overview

Returns m*2^e^ where m containts the significant binary digits and e is the exponent.

Syntax

math.ldexp( m, e )
m (required)

Number. The significand.

e (required)

Number. The exponent.

Examples

print( math.ldexp( 0.5, 8 ) )     ---> 128