how to format number into a Indian Currency

I am using DecimalFormat class to get the numbers in the Indian Currency styleinput1 : 3732342.374output1:37,32,342.37input2: 5,82,343.369output2:5,82,343.37
[178 byte] By [jpitha] at [2007-10-1 11:18:20]
# 1
Do you have a question?
Peter-Lawreya at 2007-7-10 3:48:30 > top of Java-index,Desktop,I18N...
# 2
how to format number into a Indian Currency
naj123_2k@rediffmail.coma at 2007-7-10 3:48:30 > top of Java-index,Desktop,I18N...
# 3
What does indian currency look like? (you know what I mean!)
macrules2a at 2007-7-10 3:48:30 > top of Java-index,Desktop,I18N...
# 4

Indian currency is just what he shows:

"Indian number format groups the lowest order 3 digits (thousands) and then every 2 digits after that."

Did you read the API for DecimalFormat?

You could try a currency instance with an Indian Locale. Or, build it yourself with the indicated symbols.

MLRona at 2007-7-10 3:48:30 > top of Java-index,Desktop,I18N...
# 5

I am still not entirely sure what the exact question is, but I recommend ICU for formatting currency amounts. Using those APIs you will be able to format currency amounts correctly for Indian locales (and for any currency code - you should not assume the currency from the locale, but rather explicitly specify both a number and a currency).

one_danea at 2007-7-10 3:48:30 > top of Java-index,Desktop,I18N...