File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Rounding off. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Rounding off." Watch "Rounding off." New topic

Rounding off.

akhil poddar

Joined: Aug 23, 2001
Posts: 4
Suppose we are calculating Percentage of a student say X.
X gets 68.4467%. How can we round this up to 68.45%.
Angela Narain
Ranch Hand

Joined: Apr 14, 2001
Posts: 327
By using the java.math.BigDecimal class .
I agree. Here's the link:
subject: Rounding off.
It's not a secret anymore!