This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying currency values
 
It's not a secret anymore!