You only needed to look the overloads of the method Math.Round, there is one
where you can specify the behavior when the number is just in the middle.
Specify the value MidpointRounding.AwayFromZero to round it to 133 or
MidpointRounding.ToEven to round it to 132.
Jose Fco Bonnin
"RP" <rp*********@gmail.comwrote in message
news:11**********************@q5g2000prf.googlegro ups.com...
>I want to ROUND the value if it is .5 or more to next integer. I am
using like this:
adAmount = Math.Round((basicPay * PerOrAmount) / 100, 0);
But it is not doing correctly. Suppose of adAmount = 132.5, it will
not do 133. If it exceeds .5 then it does. How to round when .5?