lib/zold/amount.rb in zold-0.10.23 vs lib/zold/amount.rb in zold-0.11

- old
+ new

@@ -51,11 +51,11 @@ def to_i @coins end - def to_zld - format('%0.2f', @coins.to_f / 2**Amount::FRACTION) + def to_zld(digits = 2) + format("%0.#{digits}f", @coins.to_f / 2**Amount::FRACTION) end def to_s text = "#{to_zld}ZLD" if negative?