|
|
 |
RE: FN-FORUM: .Net Simple(?) Maths Problem
date posted 8th February 2008 11:21
>I don't know about the language specifics, but if you add 0.5 to the
>interim answer before "rounding" the result you should get what you
>want, e.g.
>53 / 10 = 5.3
>5.3 + 0.5 = 5.8
>round(5.8) = 6
>Any use?
Excellent idea Nick thanks!
Only problem i see with that is that if i had a result of 0 it would return
1. Not sure yet if this would cause me any problems for what i am trying to
do.
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|