This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Mock Exam Errata and the fly likes rounding float to float Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "rounding float to float" Watch "rounding float to float" New topic
Author

rounding float to float

kanuparti kumar
Greenhorn

Joined: Jun 25, 2003
Posts: 1
Hi,

I am trying to round a float of format ##.### to ##.##
Is there any easy solution for this rather than multiplying the number with 10 power and dividing.


Regards,
Kumar
Jay Pawar
Ranch Hand

Joined: Aug 27, 2004
Posts: 411


Hope that helps ya


Cheers,<br />Jay<br /> <br />(SCJP 1.4)<br />Heights of great men were not achieved in one day, they were toiling day and night while their companions slept.
 
wood burning stoves
 
subject: rounding float to float
 
Similar Threads
Tech Word Game
What would be the result and why ?
Conversion table
WA #2 ..... word association
int/floats in constructor