thanhlong203 / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

goog.i18n.NumberFormat does not format multiple groupings #349

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
1. var f = new goog.i18n.NumberFormat('#,##,##0.##');
2. f.format(123456789);

What is the expected output? What do you see instead?
Expected: 12,34,56,789
Got: 123,456,789

What version of the product are you using? On what operating system?
Doesn't really matter, but: Chrome 12, Linux

Please provide any additional information below.
There is only single `groupingSize_` property, which needs to be an array or at 
least two properties (e.g. e use groupingSize, lastGroupingSize) to cover some 
common formats.

This kind of number format is pretty common, there many of these in basic 
numberformatsymbols.js...

Original issue reported on code.google.com by vojta.jina on 24 Jul 2011 at 8:07

GoogleCodeExporter commented 8 years ago

Original comment by nn...@google.com on 9 May 2012 at 10:34