fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main() {
  5. std::cout << std::fixed << std::setprecision(6) << 8.5f << std::endl;
  6. std::cout << std::fixed << std::setprecision(6) << 9.0f << std::endl;
  7. std::cout << std::fixed << std::setprecision(6) << 10.0f << std::endl;
  8. return 0;
  9. }
Success #stdin #stdout 0s 4520KB
stdin
Standard input is empty
stdout
8.500000
9.000000
10.000000