Thursday, May 12, 2005

Number formatting...Really crazy !!!

During "i18n" tasks in my development career, I was amused to see how some locales have the formatting exactly opposite to that of US or UK.

For e.g.
In en_US locale, a number(currency) would look like $9,876,543.21 (separated by comma and a decimal)

But in German, the same number would be written as 9.876.543,21 DM (comma and decimal have opposite meaning !!!)

To furthur add to the confusion, in French, the amount would be written as 9 876 543,21 F (space and comma)

God save us poor mortal developers in understanding these nuances !!!

No comments:

Post a Comment