Why does Math.Round(2.5) return 2 instead of 3?
Firstly, this wouldn’t be a C# bug anyway – it would be a .NET bug. C# is the language – it doesn’t decide how Math.Round is implemented. And secondly, no – if you read the docs, you’ll see that the default rounding is “round to even” (banker’s rounding): Return ValueType: System.DoubleThe integer nearest a. If … Read more