jQuery in Action, 2nd edition
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Rounding off. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rounding off.
 
Similar Threads
Beans
While loop - Head's First Java example
Sun Sample queston #5
variable or reference?