fork(34) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double x = 3.14659265;
  6. std::cout << x << std::endl;
  7. std::cout.precision(3);
  8. std::cout << x << std::endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
3.14659
3.15