Last active
February 25, 2017 03:32
-
-
Save ahhmarr/fcbdb3228f82b3e59a53 to your computer and use it in GitHub Desktop.
number formatting in JS for INR currencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=12345; | |
/** | |
* this accepts optinal parametes the first one is the Locale Coce ie en-US,en-IN etc and the second is an object which accepts | |
* conditional formatting params | |
* | |
* | |
**/ | |
b=a.toLocaleString("en-IN",{style:"currency",currency:"INR"}); | |
alert(b); |
@ragumcx View the Gist for the Indian Currency .
https://gist.github.com/Avinashachu007/618e8288dec1106571a44f46e2f46b3d#
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this doesn't show INDIAN currency format.
it shows US format