fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double d1 = 3.1549999999999998;
  6. cout.precision(17);
  7. cout << fixed << d1 << endl;
  8. cout << fixed << d1 * 100 << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
3.15499999999999980
315.50000000000000000