File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Customer Requirements for Developers
this week in the
Joined: Oct 04, 2007
Apr 07, 2008 15:46:00
I need to round eg: 16.490000000000002 to 16.49 (rounded up to the nearest 0.05) i tried this
considering 0.05 as round factor ,but its still the same. Any help is appreciated.
Joined: Aug 31, 2004
Apr 07, 2008 17:19:00
Look at the
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award."
It is sorta covered in the
JavaRanch Style Guide
Rounded up to the nearest 0.05
Rounding off numbers?
coding problem about Sales Taxes
rounding off in java
Rounding decimal number to nearest 0.05
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015