LPC11U_LPC13U_CodeBase icon indicating copy to clipboard operation
LPC11U_LPC13U_CodeBase copied to clipboard

Precision indicator not properly handled in stdio.c for %f

Open microbuilder opened this issue 12 years ago • 0 comments

Precision values with a decimal point are not properly handled in stdio.c for %f, so the following will fail:

sprintf(sbuff,"%5.1f", x);

However, this will work:

sprintf(sbuff,"%4f", x);

Detection and handling of '.' needs to be added to the existing code.

microbuilder avatar Nov 06 '13 23:11 microbuilder