lib/money/money.rb
# The value of the money in cents.
#
# @return [Integer]
The value of the money in cents.
The value of the money in cents .
def cents
    if self.class.infinite_precision
      @cents
    else
      @cents.round(0, self.class.rounding_mode).to_i
    end
  end
def cents if self . class . infinite_precision @cents else @cents . round ( 0 , self . class . rounding_mode ) . to_i end end
The value of the money in cents.
The value of the money in cents .
None
Integer