No commit activity in last 3 years
No release in over 3 years
number_to_indian_currency helper converts given number to the indian currency format (also displays Rupees symbol)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
>= 0
~> 10.0
 Project Readme

Number To Indian Currency Helper

Gem Version Build Status Dependency Status License

This gem adds number_to_indian_currency helper method which formats number to the indian style. Also provides css support to show rupee symbol along-with the formatted number.

Installation

gem install number_to_indian_currency

Using Bundler

gem 'number_to_indian_currency'

Add following line to the layout

stylesheet_link_tag 'rupees'

Example Usage

number_to_indian_currency(2000) => "Rs.2,000"
number_to_indian_currency(2040.50, text: 'Rs. ') => "Rs. 2,040.5"
number_to_indian_currency(1222040.54, text: 'Rupee: ') => "Rupee: 12,22,040.54"
number_to_indian_currency(9921, web_rupee: true) => "<span class="WebRupee">Rs.</span> 9,921"

thats, all

any sugestions? email me sandip at funonrails.com released under the MIT license