Function ldexp
Source pub fn ldexp(m: number, e: number) -> number
Expand description
Builds a float from a mantissa and an exponent.
Re-added in Lua 5.5 (it had been removed in 5.3).
§Parameters
m: the mantissa.
e: an integer exponent.
§Return value
The float m * 2^e.
§Examples
print(math.ldexp(0.5, 4)) --> 8.0
print(math.ldexp(1, 10)) --> 1024.0
§See also
frexp