• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rounding off.

 
akhil poddar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using the java.math.BigDecimal class .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic