fork(2) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var f1 = .1f + .2f;
  8. var f2 = .3f;
  9. Console.WriteLine(f1 == f2); // prints true
  10. Console.WriteLine(.1f+.2f==.3f);
  11. }
  12. }
Success #stdin #stdout 0.02s 33840KB
stdin
Standard input is empty
stdout
True
True