Recently I had a bug in my C# library that was hard to find due to the bug in Xamarin debugger. Problem was in the "Watch" window that showed String (rounded) representation of a double value, instead of showing all decimal digits. As you can see in the picture below, sideProductSum and diagonalProduct are both 16 but somehow they are not equal:
Here is the same method debugged in Microsoft Visual Studio (doubles shown correctly):
No comments:
Post a Comment