Currentize

Inputs a number and outputs to currency format.

Installation

Add this line to your application's Gemfile:

gem 'Currentize'

And then execute:

$ bundle

Or install it yourself as:

$ gem install Currentize

Usage

Currentize.format(1000, "£")
#=> £1,000

# Will default to $
Currentize.format(1000)
#=> $1,000

Why?

Just for fun