Parent

Numeric

Public Instance Methods

round_with_digits(ndigits=0) click to toggle source
# File lib/backports/1.9.1/numeric.rb, line 3
def round_with_digits(ndigits=0)
  ndigits = Backports::coerce_to_int(ndigits)
  ndigits.zero? ? round_without_digits : Float(self).round(ndigits)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.