fork(3) download
  1. #include <iostream>
  2. #include <limits>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. double c = 123456789.12;
  8. cout.precision(numeric_limits<double>::digits10 + 1);
  9. cout << c << endl;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
123456789.12