Sha256: 5cb005e2fb1858a6630eea9a037828ed66bc3abc3c63c7a1410a09730fd9f647

Contents?: true

Size: 918 Bytes

Versions: 2

Compression:

Stored size: 918 Bytes

Contents

# PercentOf

[![Gem Version](https://badge.fury.io/rb/percent_of.svg)](http://badge.fury.io/rb/percent_of) [![Build Status](https://travis-ci.org/ducknorris/percent_of.svg?branch=master)](https://travis-ci.org/ducknorris/percent_of)

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](https://github.com/ducknorris/percent_of/graphs/contributors).

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
percent_of-0.0.3 README.md
percent_of-0.0.2 README.md