fork(2) download
  1. #include <iostream>
  2. #include <cstdio>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double d = 1000000000000000001;
  9. cout.setf(ios::fixed);
  10. cout.precision(0); //0 - число символов после точки
  11. cout << d << endl;
  12. printf("%.0lf\n",d);
  13. return 0;
  14. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
1000000000000000000
1000000000000000000