method

ldexp

v2_5_5 - Show latest stable - Class: Math
ldexp(p1, p2)
public

Returns the value of fraction*(2**exponent).

fraction, exponent = Math.frexp(1234)
Math.ldexp(fraction, exponent)   #=> 1234.0