Math.frexp(numeric) รข [ fraction, exponent ]
Class Public methods
Returns a two-element array containing the normalized fraction (a
Float
) and exponent (a Fixnum
) of
numeric.
fraction, exponent = Math.frexp(1234) #=> [0.6025390625, 11] fraction * 2**exponent #=> 1234.0
Please login to continue.