fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. double x = 378760.58;
  7. cout << x << "\n";
  8. cout << fixed << setprecision(2) << x << "\n";
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
378761
378760.58