posted 15 years ago
how are you getting 7.85 from 7.826? what exactly are you requirements here? we can't tell if you're always rounding up, if you're rounding to the closes 1/20th (i.e. either .x5 or .x0) if you're rounding up at least .02 or something else.
Please provide more details on what you want.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors