Hai,
You can try math.round().  This method is available in java.lang package
-----Original Message-----
From: Fırat Tiryaki <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Saturday, May 26, 2001 2:18 PM
Subject: rounding values


>Hi all,
>
>How can I round values decimally ;
>
>example:   I want to round the value 78.2145 to 78.21  or 78.2175 to 78.22
>is there a method for this or do I have to write my own
>
>thanks in advanced
>
>FIRAT
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to