PDA

View Full Version : [CLOSED] 4.0.2 Ext.util.Format.number doesn't format correctly with /i modifier



lasseok
12 Jun 2011, 10:57 AM
The Api Doc says:


To allow specification of format strings according to local conventions for separator characters, add the string /i to the end of the format string.
[...]
To allow specification of the formatting string using UK/US grouping characters (,) and decimal (.) for international numbers, add /i to the end. For example: 0.000,00/i


But if I try that (with the example number 123456.789):



console.log(Ext.util.Format.number(123456.789,'0.000,00/i'));

...The result is 123,456.78900

If this is not a bug please move this post. Thanks!

spillo491
23 Oct 2011, 11:02 PM
Have you resolved ? I have the same problem !

dvaidhya
28 Nov 2012, 12:48 PM
Is this bug resolved? please advice

evant
28 Nov 2012, 3:27 PM
Yes, when I run this with 4.1.3 it logs:



123,456.78900