class String

available on String objects.
When you require BigDecimal in your application, this method will be
BigDecimal extends the native String class to provide the #to_d method.

def to_d


# => #
"0.5".to_d

require 'bigdecimal/util'
require 'bigdecimal'

Convert +string+ to a BigDecimal and return it.

string.to_d -> bigdecimal
call-seq:
def to_d
  BigDecimal(self)
end