fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. double a = 1000./3;
  5. double b = 5./2;
  6. printf("g: %.9g %.9g\n", a, b);
  7. printf("f: %f %f\n", a, b);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
g: 333.333333 2.5
f: 333.333333 2.500000