how to display the numbers in Indian Style (ie) 66,77,878.35
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anna_malai
Posted On:   Friday, April 15, 2005 02:35 AM

I have tried DecimalFormat("##,##,##0.00"); but it is not working.Please any one give the right solution for this.

Re: how to display the numbers in Indian Style (ie) 66,77,878.35

Posted By:   Milan_Boruvka  
Posted On:   Sunday, May 8, 2005 05:15 PM

Hi, try this:


Locale indiaLocale = new Locale("en","IN");
NumberFormat nfmt = NumberFormat.getInstance(indiaLocale);
String s = nfmt.format(123456789);
System.out.println(s);


The output is:

123,456,789



Cheers,
Boruvek
About | Sitemap | Contact