fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. double x = 0.15, y = 0.14999999999;
  6. if (x <= y)
  7. std::cout << "Equation returns true." << std::endl;
  8. else
  9. std::cout << "x = " << x << "; y = " << y << "; but x <= y is false." << std::endl;
  10. }
Success #stdin #stdout 0s 4180KB
stdin
Standard input is empty
stdout
x = 0.15; y = 0.15; but x <= y is false.