aspose file tools*
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 Java 8 in Action this week in the Java 8 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
 
Similar Threads
Help with currency symbol
URLyBird 1.3.3: Validation of currency on the rate field
Localized Currency formatting issue
How do I NOT require currency symbol on input, but still display it with convertNumber?
JSTL fmt:formatNumber does not display currency