Class Numeric
In: lib/backports/1.9.1/numeric.rb
lib/backports/1.8.7/numeric.rb
Parent: Object

Methods

Public Instance methods

[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]