fork(2) download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main(int argc, char *argv[]) {
  5. std::cout << "0.1f: " << std::setprecision(20) << (double)0.1f << std::endl;
  6. std::cout << "0.1 : " << std::setprecision(20) << 0.1 << std::endl;
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
0.1f: 0.10000000149011611938
0.1 : 0.10000000000000000555