.net - Why does Math.Round(2.5) return 2 instead of 3 in C#? - Stack Overflow
@amed that's not a bug. It's the way binary floating points work. 1.005 can't be represented exactly in double. It's probably 1.00499.... If you use Decimal this problem will disappear. The existence of the Math.Round overload that takes a number of decim...