namespace ConsoleApplication1
public static class Program
public static void Main(string[] args)
float y = 1000000.1f/10.0f;
Console.WriteLine("Float: {0} == {1} ==> {2}", x, y, x == y);
Console.WriteLine("String: {0} == {1} ==> {2}", x, y, x.ToString() == y.ToString());