fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. float test(0.2);
  7. cout << setprecision(20) << 1.8 + test << " " << boolalpha << (1.8 + test <= 2) << endl;
  8. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
2.0000000029802320611 false