fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <fenv.h>
  4.  
  5. using namespace std;
  6.  
  7. int main(void)
  8. {
  9. feenableexcept(-1);
  10.  
  11. double x,y,z;
  12.  
  13. x = 1.0;
  14.  
  15. y = (1.0/(24.3*24.0*3600.0))*x;
  16. cout << "y = " << y << endl;
  17.  
  18. z = x/(24.3*24.0*3600.0);
  19. cout << "z = " << z << endl;
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
y = 4.76299e-07
z = 4.76299e-07