diff options
-rw-r--r-- | ext/bigdecimal/lib/bigdecimal/util.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/lib/bigdecimal/util.rb b/ext/bigdecimal/lib/bigdecimal/util.rb index 3340d53550..90b0cbd0b8 100644 --- a/ext/bigdecimal/lib/bigdecimal/util.rb +++ b/ext/bigdecimal/lib/bigdecimal/util.rb @@ -10,7 +10,6 @@ # to_d ... to BigDecimal # # BigDecimal# -# to_digits ... to xxxxx.yyyy form digit string(not 0.zzzE?? form). # to_r ... to Rational # # Rational# @@ -32,6 +31,7 @@ end class BigDecimal < Numeric # to "nnnnnn.mmm" form digit string + # Use BigDecimal#to_s("F") instead. def to_digits if self.nan? || self.infinite? || self.zero? self.to_s |