class Float
Give Floats the ability to display with human-readable precision
Public Instance Methods
format_quantity()
click to toggle source
# File lib/cookbook/extensions/float.rb, line 7 def format_quantity to_s.sub(/\.?0+$/, '') end