wood burning stoves 2.0*
The moose likes Java in General and the fly likes Displaying currency values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Displaying currency values" Watch "Displaying currency values" New topic
Author

Displaying currency values

ravinderSingh singh
Ranch Hand

Joined: Nov 18, 2004
Posts: 41
Hi all,

I'm trying to display some monetary value using the code below,

NumberFormat.getCurrencyInstance(Locale.ENGLISH).format(value);

When executed, the code correctly formats the value but it displays some funny star symbol followed by the formatted value.

Does anyone know why this is and how I could replace the funny star symbol with a currency symbol (�)?
Grant Gainey
Ranch Hand

Joined: Oct 16, 2005
Posts: 65
Try Locale.UK - Locale.ENGLISH is just "en", and I have no idea what it thinks it's mapping currency to.

Grant


In Theory, there is no difference between theory and practice.<br />In Practice, there is no relationship between theory and practice.
 
GeeCON Prague 2014
 
subject: Displaying currency values