fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. double a = 0.1 + 0.2;
  5. double b = 0.3;
  6. printf("%.20lf\n%.20lf\n", a, b);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 5444KB
stdin
Standard input is empty
stdout
0.30000000000000004441
0.29999999999999998890