flt.to_d â bigdecimal
Instance Public methods
Convert flt
to a BigDecimal and
return it.
require 'bigdecimal' require 'bigdecimal/util' 0.5.to_d # => #<BigDecimal:1dc69e0,'0.5E0',9(18)>
Convert flt
to a BigDecimal and
return it.
require 'bigdecimal' require 'bigdecimal/util' 0.5.to_d # => #<BigDecimal:1dc69e0,'0.5E0',9(18)>
Please login to continue.