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