fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. volatile float x = 0.1f;
  6. volatile double y = 0.1;
  7. printf("%.15lg; %.15lg; %.15g;\n", (double) x, y, x);
  8.  
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
0.100000001490116; 0.1; 0.100000001490116;