fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. std::cout.precision(25);
  5. std::cout << std::fixed << 1e-10 << std::endl;
  6. std::cout << std::fixed << 1 + 1e-10 << std::endl;
  7. std::cout << std::fixed << 10 + 1e-10 << std::endl;
  8. std::cout << std::fixed << 100 + 1e-10 << std::endl;
  9. std::cout << std::fixed << 10e10 + 1e-10 << std::endl;
  10. }
  11.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
0.0000000001000000000000000
1.0000000001000000082740371
10.0000000001000000082740371
100.0000000001000017846308765
100000000000.0000000000000000000000000