Class: Float
Overview
TODO write a spec
Instance Method Summary collapse
Instance Method Details
#to_percentage(precision = 2) ⇒ Object
69 70 71 |
# File 'lib/gci-class-extensions.rb', line 69 def to_percentage(precision=2) (self * 100).round(precision) end |