Skip to Content

Display Amount in the Corrsesponding Currency

Hello Everyone,

I have an RFC that returns and Amount and a Currency to my webdynpro project. The amount is in the format 1200.98. I want to display this amount on my view as follows:

Currency is USD - 1,200.98

Currency is JPY - 120,098

Currency is EUR - 1,200.98

Currency is IDR - 120,098

Thanks in advance for your assistance.

Mike

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Mar 23, 2006 at 05:10 PM

    Hi Mike,

    Check tutorial from Sun: http://java.sun.com/docs/books/tutorial/i18n/format/numberFormat.html

    Best regards, Maksim Rashchynski.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2006 at 08:47 AM

    Hi Mike,

    If you are looking to implement based on the locale. U can create a class that returns currency in the following formatbased on locales for further information refer to the following links

    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Locale.html

    http://java.sun.com/developer/technicalArticles/Intl/ResourceBundles/

    http://www.java2s.com/ExampleCode/Development-Class/Usesomelocaleschoices.htm

    http://www.devsphere.com/mapping/docs/guide/internat.html

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.