When I use fprintf to print double data to the screen with the following format, it always shows 0.00 on the screen.
Note that I am working at Win10 with CB16.01.
double db_data=0.5;
fprintf(stdout,"db_data = %.2lf \n",db_data); //lf for double
When I run it at Win7 with CB16.01 with the same compiler configuration, it is OK.
Does anyone have the same problem?