method

ldexp

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

Returns the value of flt*(2**int).

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