fork(2) download
  1. #include<stdio.h>
  2. #include <float.h>
  3.  
  4. int main()
  5. {
  6. float a=0.7;
  7. printf("%.10f %.10f FLT_EVAL_METHOD=%d\n",0.7f, a, (int)FLT_EVAL_METHOD);
  8.  
  9. printf("%.60f %.60f\n", 0.7f, 0.7);
  10. printf("%.60Lf %.60Lf\n", (long double)0.7f, (long double)0.7);
  11. }
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
0.7000000000 0.6999999881 FLT_EVAL_METHOD=2
0.699999999999999955591079014993738383054733276367187500000000 0.699999999999999955591079014993738383054733276367187500000000
0.699999999999999999989157978275144955659925471991300582885742 0.699999999999999999989157978275144955659925471991300582885742