fork(7) download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. float a = 0.1f;
  5. float b = 0.2f;
  6. float c = a + b;
  7. float d = 0.3f;
  8.  
  9. printf("%a\n%a\n%a\n%a\n%15.12f\n%15.12f\n", a, b, c, d, c, d);
  10. return 0;
  11. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
0x1.99999ap-4
0x1.99999ap-3
0x1.333334p-2
0x1.333334p-2
 0.300000011921
 0.300000011921