using System;
public class Test
{
public static void Main()
{
var f1 = .1f + .2f;
var f2 = .3f;
Console.WriteLine(f1 == f2); // prints true
Console.WriteLine(.1f+.2f==.3f);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJICB2YXIgZjEgPSAuMWYgKyAuMmY7CiAgICAgICAgICB2YXIgZjIgPSAuM2Y7CiAgICAgICAgICBDb25zb2xlLldyaXRlTGluZShmMSA9PSBmMik7IC8vIHByaW50cyB0cnVlCiAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSguMWYrLjJmPT0uM2YpOwoJfQp9