fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double x = 13.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 5304KB
stdin
Standard input is empty
stdout
13.1466
13.1