[Solved] Addition of Doubles in C# application producing strange results [closed]
Ultimately, this is because some base-10 numbers (like 0.9) cannot be represented in base 2 in a finite number of digits, just like the fraction 1/3 cannot be represented in base 10 in a finite number of digits (you get 0.333…). 0.9 converted to base 2 is 0.1110011001100…, and this binary representation gets truncated such … Read more