fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. int main(int argc,char** argv)
  6. {
  7. float a = 1.125450e-3;
  8. float b = 1.000000e-3;
  9.  
  10. float c = 9.154615e-04;
  11. float d = 2.099884e-04;
  12.  
  13. float e = c+d;
  14.  
  15. printf("%e %e %e %e %e %e\n",a-b, c+d, e, c+d-b, e-b, 1.125450e-3 - 1.000000e-3);
  16.  
  17.  
  18.  
  19. return EXIT_SUCCESS;
  20. }
  21.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
1.254500e-04 1.125450e-03 1.125450e-03 1.254498e-04 1.254498e-04 1.254500e-04