fork(2) download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main() {
  5. double f =123456789.12;
  6. std::cout << std::fixed << std::setprecision(2) << f << '\n';
  7. return 0;
  8. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
123456789.12