Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/core_ext/core_ext.rb
Overview
Float Extensions ===============================================================================
Instance Method Summary collapse
Instance Method Details
#to_nearest_tenth ⇒ Object
184 185 186 |
# File 'lib/core_ext/core_ext.rb', line 184 def to_nearest_tenth sprintf("%.1f", self).to_f end |