javascript-number-formatter icon indicating copy to clipboard operation
javascript-number-formatter copied to clipboard

Lightweight & Fast JavaScript Number Formatter

Results 11 javascript-number-formatter issues
Sort by recently updated
recently updated
newest added

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

![image](https://user-images.githubusercontent.com/29556988/50700032-92f2d680-105a-11e9-8f24-ae187ef87af5.png) SCRIPT1002: Syntax error

bug

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)...

bug
help wanted

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...

enhancement

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...

enhancement

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...

enhancement

See example [fiddle](https://jsfiddle.net/t2etyodx/7/) * Mask: `#` (for simplicity's sake) * Value: `12345678901234567890` * Actual result: `12345678901234567000` * Expected result: `12345678901234567890` (same as Value)

enhancement
help wanted

format('$#,##0.', -100) should return '-$100', the same way as Excel does it

enhancement

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...