class BigDecimal
Public Instance Methods
in_cents()
click to toggle source
# File lib/big_decimal.rb, line 12 def in_cents (self * 100).to_i end
to_s_with_format(*args)
click to toggle source
# File lib/big_decimal.rb, line 2 def to_s_with_format(*args) if args.empty? "%.2f" % self else to_s_without_format(*args) end end
Also aliased as: to_s