fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. double a = 1.d;
  7. while (a / 2 != 0) {
  8. a /= 2;
  9. }
  10. cout.precision(20);
  11. cout << a << '\n';
  12. cout << pow(0.5, 22+127) << '\n';
  13. cout << pow(0.5d, 51+1023) << '\n';
  14. return 0;
  15. }
Success #stdin #stdout 0s 4264KB
stdin
Standard input is empty
stdout
4.9406564584124654418e-324
1.4012984643248170709e-45
4.9406564584124654418e-324