Quote:
Originally Posted by Farling
So "(uval -1) / 2"
Does that give the correct subtraction, or should it be "(uval + 1) / 2"?
|
It gives the correct subtraction for the division by 2, but not, I now realize, for the final calculation. Your reply gave me this idea:
Code:
cost = (uval - 1) / 2
cost = round(cost,0,1) + 1
And that works.