A simple module to assist in formatting unambiguous prices and price ranges in international currencies
Switch branches/tags
Nothing to show
Clone or download
yuki24 Merge pull request #12 from yuki24/test-against-multiple-rubies-and-r…
…ails

Test against multiple rubies and rails
Latest commit 83c16b1 May 30, 2017

README.md

MoneyHelper

A simple module to assist in formatting unambiguous prices and price ranges in international currencies in a Roman Script environment.

Usage

Examples:

money_to_text(10000, 'AUD')

produces "AUD $10,000"

money_to_text(10000, 'AUD', true)

produces "10,000"

money_range_to_text(10000, 40000, 'AUD', ' ... ')

produces: "AUD $10,000 ... 40,000"

Contributing

Fork the project. Make your feature addition or bug fix with tests. Send a pull request.

Copyright and License

MIT License, see LICENSE for details.

(c) 2013 Artsy, Sahil Yakhmi, Joey Aghion and contributors.