class Float
available on Float objects.
When you require BigDecimal in your application, this method will be
BigDecimal extends the native Float class to provide the #to_d method.
def to_d(precision=nil)
# => #
0.5.to_d
require 'bigdecimal/util'
require 'bigdecimal'
Convert +flt+ to a BigDecimal and return it.
flt.to_d -> bigdecimal
call-seq:
def to_d(precision=nil) BigDecimal(self, precision || Float::DIG) end