| Author |
NumberFormat / currency
|
mark reusen
Greenhorn
Joined: Oct 20, 2010
Posts: 22
|
|
I'd like to format the price in a Euro sign, I tried without an argument and also with argument Locale.GERMAN.
Result is no format.
When I use Locale.UK as an argument it works fine, then the Pound-sign appears...... also with the Locale.US (Dollar-sign appears)
NumberFormat currency = NumberFormat.getCurrencyInstance(Locale.GERMAN);
return currency.format(price);
price is defined as a double by the way..
|
 |
Mohamed Sanaulla
Bartender
Joined: Sep 08, 2007
Posts: 2928
|
|
|
Locale.GERMAN is for language, you might want to try- Locale.GERMANY as it would represent the country and that way also the currency. By the way Locale.US/Locale.UK represents the country.
|
Mohamed Sanaulla | My Blog
|
 |
 |
|
|
subject: NumberFormat / currency
|
|
|