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