Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/pdground/extension.rb
Overview
Redefine Integer class to include the same methods as Float
Instance Method Summary collapse
Instance Method Details
#hisigfig(digits) ⇒ Object
23 24 25 |
# File 'lib/pdground/extension.rb', line 23 def hisigfig(digits) to_f.hisigfig(digits) end |
#sigfig(digits) ⇒ Object
19 20 21 |
# File 'lib/pdground/extension.rb', line 19 def sigfig(digits) to_f.sigfig(digits) end |