Why does Math.Round(2.5) return 2 instead of 3?
In C#, the result of Math.Round(2.5) is 2. It is supposed to be 3, isn’t it? Why is it 2 instead in C#? 15 Answers 15 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, … Read more