3
Reply

Is it a bug or Am i missing something?

aboovk

aboovk

Apr 24 2006 2:20 AM
4.3k


Hi,

In c# when i perform the Round function it yields results in an unexpeted way.

Can anyone please advise me on this?

Math.Round(0.5); // Result is: 0 But the exptedt is 1

Math.Round(4.5); // Result is: 4 But the exptedt is 5

Math.Round(3.5); // Result is: 4 This is OK

Aboo


Answers (3)