PercentOf
¶ ↑
Module that implements percent_of
for Fixnum
and Float
classes in Ruby.
It returns the percent of a number from another number.
How to use¶ ↑
Add it to your Gemfile
.
# ... gem 'percent_of' # ...
You can use #percent_of
by invoking:
20.percent_of 100 # => "20.00%" 24.44.percent_of 123.45 # => "19.80%"
Contributing¶ ↑
Thanks to our contributors.
-
Fork it
-
Create your feature branch (
git checkout -b my-new-feature
) -
Commit your changes (
git commit -am 'Add some feature'
) -
Push to the branch (
git push origin my-new-feature
) -
Create new Pull Request