fork(1) download
  1. #include <iostream>
  2. int main() {
  3. float f = 0.0f;
  4. float f2 = 5.f - 5.f;
  5. float f3 = 0.001f - 0.001f;
  6. std::cout << std::boolalpha;
  7. std::cout << (f == 0.0f) << std::endl;
  8. std::cout << (f2 == 0.0f) << std::endl;
  9. std::cout << (f3 == 0.0f) << std::endl;
  10. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
true
true
true