method

ldexp

v1_8_6_287 - 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