Look at Java Locale class, there is dollar format type you can use it.

Babu

-----Original Message-----
From: Gustavo Gallas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 2:51 PM
To: [EMAIL PROTECTED]
Subject: Currency format


Hi folks.. It's me again..

What's the best way for me to work with currency values in Java?

I need to multiply some money values such as $ 254,00 with values like
0.526835 ...

I'm trying to work with double, but at the end I get as result a number like
167.683625

How do I work with 2 decimal digit values?

thanks

--
Gustavo Gallas
Programador
Advice NetBusiness - Sua Melhor Intera��o com o Mundo
advicenet.com.br
Tel: (21) 2515.5099 - Fax: (21) 2515.5098

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
The information in this email and in any attachments thereto is confidential
and may be legally privileged. It is intended solely for the addressee.
Access to this email by anyone else is unauthorized. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to