Hi The following function in java.lang.Math can be useful.
i = java.lang.Math.round(( i * 100.0 ) ) / 100.0; this is to round to the hundredth value. Regards P a r a m. -----Original Message----- From: Dick Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 9:36 AM To: [EMAIL PROTECTED] Subject: Get help on rounding. Dear all, How can I round a money value into the nearest 5 cents ? e.g $2.0625 after round = $2.05 $2.0421 after round = $2.00 Thanks =========================================================================== 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com