fork download
  1. #include <iomanip>
  2. #include <iostream>
  3.  
  4. int main()
  5. {
  6. std::cout << std::setprecision(20) << 0.1 + 0.2 << std::endl;
  7. return 0;
  8. }
Success #stdin #stdout 0s 4480KB
stdin
Standard input is empty
stdout
0.30000000000000004441