Not working correctly when working with huge numbers
Posted on:14 Oct 2015 12:55
This is expected behavior - the issue is related with the precision of the double object in the .Net framework. Such really big numbers are loosing the precision and are being rounded..
Can be observed in the following snippet:
var a = double.MaxValue;
var b = a - 100;
var areEqual = a == b;