lib/bigdecimal/util.rb in bigdecimal-3.0.2 vs lib/bigdecimal/util.rb in bigdecimal-3.1.0
- old
+ new
@@ -41,10 +41,10 @@
# 0.5.to_d # => 0.5e0
# 1.234.to_d(2) # => 0.12e1
#
# See also BigDecimal::new.
#
- def to_d(precision=Float::DIG+1)
+ def to_d(precision=0)
BigDecimal(self, precision)
end
end