File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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
How do I NOT require currency symbol on input, but still display it with convertNumber?
JSTL fmt:formatNumber does not display currency
URLyBird 1.3.3: Validation of currency on the rate field
Help with currency symbol
Localized Currency formatting issue