Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

number_to_indian_currency

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

number_to_indian_currency

  • 1.0.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Number To Indian Currency Helper

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

FAQs

Package last updated on 20 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc