lib/bigdecimal/util.rb in bigdecimal-1.1.0 vs lib/bigdecimal/util.rb in bigdecimal-1.2.0
- old
+ new
@@ -26,10 +26,10 @@
#
# 0.5.to_d
# # => #<BigDecimal:1dc69e0,'0.5E0',9(18)>
#
def to_d(precision=nil)
- BigDecimal(self, precision || Float::DIG+1)
+ BigDecimal(self, precision || Float::DIG)
end
end
class String
# call-seq: