fork(1) download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main(int argc, char** argv)
  5. {
  6. double testme[] = { 1.07500, 1.89500, 2.70500, 3.47500};
  7. std::cout << std::setprecision(20) << std::fixed;
  8.  
  9. for(int i = 0; i < 4; ++i)
  10. {
  11. std::cout << testme[i] << std::endl;
  12. }
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 4344KB
stdin
Standard input is empty
stdout
1.07499999999999995559
1.89500000000000001776
2.70500000000000007105
3.47500000000000008882