Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/africompta/acqooxview.rb
Instance Method Summary collapse
Instance Method Details
#round(precision = 0) ⇒ Object
60 61 62 63 64 65 66 |
# File 'lib/africompta/acqooxview.rb', line 60 def round(precision = 0) if precision > 0 return (self * 10**precision).round / 10.0**precision else return super() end end |