I have a program which shows a different print (an extra 0 on windows) and i am trying to make it same as linux .
On windows using Visual studio 2012 . On linux using g++ v4.8.3
Any sugegstion .
I have created a small program to showcase problem that I am facing ...
float f = -1e-14;
printf("\n\n \t Lets print the float value -1e-14 as [%9.3g] \n\n\n\n",f);
Lets print the float value -1e-14 as [ -1e-14]
Lets print the float value -1e-14 as [ -1e-014]
_set_output_format(_TWO_DIGIT_EXPONENT) first to cause
printf() to use two-digit exponents with VS2012.