RE: Java q: round to n decimal points?

2002-11-17 Thread Hari Yellina
in NuberFormat, Please use the fucntion setMaximumDecimalPoints and Miminum Decimal Points. -Original Message- From: Josh G [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 14, 2002 05:54 PM To: Tomcat Users List Subject: Java q: round to n decimal points? Is there a nice easy way

Re: Java q: round to n decimal points?

2002-11-14 Thread Carsten Ziegert
It's quite easy: multiply your double with 10^n, do a simple round, and divide it by 10^n Carsten Am Donnerstag, 14.11.02, um 07:53 Uhr (Europe/Berlin) schrieb Josh G: Is there a nice easy way to round a double to n decimal points? I couldn't see anything in Math,Double,String, or

Re: Java q: round to n decimal points?

2002-11-14 Thread Rodrigo Ruiz
- Original Message - From: Josh G [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 7:53 AM Subject: Java q: round to n decimal points? Is there a nice easy way to round a double to n decimal points? I couldn't see anything in Math,Double

Re: Java q: round to n decimal points?

2002-11-14 Thread Sam Seaver
: Wednesday, November 13, 2002 10:53 PM Subject: Java q: round to n decimal points? Is there a nice easy way to round a double to n decimal points? I couldn't see anything in Math,Double,String, or NumberFormat... -Josh -- And can you tell me doctor why I still can't get to sleep? And why

Java q: round to n decimal points?

2002-11-13 Thread Josh G
Is there a nice easy way to round a double to n decimal points? I couldn't see anything in Math,Double,String, or NumberFormat... -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can