fork download
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main(string[] args)
  6. {
  7. double x = 7625597484987.0;
  8. double y = 7625597484986.97;
  9. bool eq1 = (x == y);
  10. Console.WriteLine("x == y: {0}", eq1);
  11. double log3x = Math.Log(x, 3);
  12. double log3y = Math.Log(y, 3);
  13. bool eq2 = (log3x == log3y);
  14. Console.WriteLine("log3x == log3y: {0}", eq2);
  15. }
  16. }
  17.  
Success #stdin #stdout 0.03s 33856KB
stdin
Standard input is empty
stdout
x == y: False
log3x == log3y: True