fork(2) download
  1. #include <iostream>
  2.  
  3. int main() {
  4. std::cout << "+0.0 + +0.0 == " << +0.0 + +0.0 << std::endl;
  5. std::cout << "+0.0 + -0.0 == " << +0.0 + -0.0 << std::endl;
  6. std::cout << "-0.0 + +0.0 == " << -0.0 + +0.0 << std::endl;
  7. std::cout << "-0.0 + -0.0 == " << -0.0 + -0.0 << std::endl;
  8. return 0;
  9. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
+0.0 + +0.0 == 0
+0.0 + -0.0 == 0
-0.0 + +0.0 == 0
-0.0 + -0.0 == -0