lib/bigdecimal/util.rb in bigdecimal-1.3.2 vs lib/bigdecimal/util.rb in bigdecimal-1.3.3

- old
+ new

@@ -81,11 +81,11 @@ # Converts a BigDecimal to a String of the form "nnnnnn.mmm". # This method is deprecated; use BigDecimal#to_s("F") instead. # # require 'bigdecimal/util' # - # d = BigDecimal.new("3.14") + # d = BigDecimal("3.14") # d.to_digits # => "3.14" # def to_digits if self.nan? || self.infinite? || self.zero? self.to_s @@ -101,10 +101,10 @@ # # Returns self. # # require 'bigdecimal/util' # - # d = BigDecimal.new("3.14") + # d = BigDecimal("3.14") # d.to_d # => 0.314e1 # def to_d self end