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