[Source]
# File lib/backports/1.9.1/numeric.rb, line 3 3: def round_with_digits(ndigits=0) 4: ndigits = Backports::coerce_to_int(ndigits) 5: ndigits.zero? ? round_without_digits : Float(self).round(ndigits) 6: end
[Validate]