using System;
public class Program
{
public static void Main()
// Lets do some arbitrary calculations.
float a = (float)Math.PI;
float b = (float)Math.Sqrt(a);
float c = (float)Math.Sqrt(b);
float d = c * c * c * c;
// --> d should be equal to a, but because of limited precision and numerical errors a != d.
if (a == d)
Console.WriteLine("a == d");
else
Console.WriteLine("a != d"); // This message is written. :-(
}