A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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."
I agree. Here's the link:
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