I understand that floating point arithmetic as performed in modern computer systems is not always consistent with real arithmetic. I am trying to contrive a small C# progra
My favourite demonstration boils down to
double d = 0.1; d += 0.2; d -= 0.3; Console.WriteLine(d);
The output is not 0.
0