fork(9) download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7.  
  8. cout << fixed << setprecision(1);
  9. double num = 2.6534;
  10. cout << num << endl;
  11. }
  12.  
Success #stdin #stdout 0s 4372KB
stdin
Standard input is empty
stdout
2.7