R
ranjiththarayil
Consider the following code snippet
------------------
float fi=12.598;
printf("\n %.2f \n",fi);
------------------
the output of this would be 12.60 (note when we give the conversion
specifier as "%.2f" the result is rounded to 12.60)
My requirement is the value be 12.59 instead of 12.60.Are there any
conversion specifier that suppress this rounding
------------------
float fi=12.598;
printf("\n %.2f \n",fi);
------------------
the output of this would be 12.60 (note when we give the conversion
specifier as "%.2f" the result is rounded to 12.60)
My requirement is the value be 12.59 instead of 12.60.Are there any
conversion specifier that suppress this rounding