fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. float f = 0.1f;
  7. cout << f << endl;
  8. cout << setprecision(10) << f << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
0.1
0.1000000015