javascript-number-formatter
javascript-number-formatter copied to clipboard
Lightweight & Fast JavaScript Number Formatter
Hi, I'ma having a problem using the formatter: #,##0 In C#: string.Format("{0:#,##0}", 0) ---> 0 string.Format("{0:#,##0}", 68) ---> 68 In the library: format('#,##0', 0) ---> ,000 format('#,##0', 68) ---> 68,000
 SCRIPT1002: Syntax error
Thank you for a great library. There seem to be a bug for some numbers patterns with Indian style grouping (the default in Indian English, for instance): ``` > format("#,##,##0.###",2000000)...
We got issue on the rounding, example: `format("0.00", "7.165")` got "7.17" but `format("0.00", "8.165")` got "8.16" May I ask if any option can make them rounding consistent or this is...
Hi, I'd like to be able to say 'format 0.5 as a percent' e.g. format('###%', 0.5) and it show as '50%', but I can't see a way to register customizations...
Hi, I noticed recently that [NumeralJs](http://numeraljs.com/#format) includes abbreviations such as: | value | format | result | 1230974 | '0.0a' | 1.2m | 1460 | '0 a' | 1 k...
See example [fiddle](https://jsfiddle.net/t2etyodx/7/) * Mask: `#` (for simplicity's sake) * Value: `12345678901234567890` * Actual result: `12345678901234567000` * Expected result: `12345678901234567890` (same as Value)
format('$#,##0.', -100) should return '-$100', the same way as Excel does it
for format like: `#,##0` it still shows all decimals, but sohuld not.
Description: When using a ".' as a grouping symbol alongside decimals being present within the formatting mask, no formatting gets applied. Examples: `Mask`: #.##0.00 Value: 1000000 Expected output: 1.000.000.00 Received...