wood burning stoves 2.0*
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Rounding off." Watch "Rounding off." New topic
Author

Rounding off.

akhil poddar
Greenhorn

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 .
 
 
subject: Rounding off.