AnsweredAssumed Answered


Question asked by Stephen Dame on Jun 6, 2016
Latest reply on Jun 16, 2016 by Stephen Dame

I'm getting a strange output from PRINTF for formatted printing of floating point numbers using the %f.


Heres's my string...



PRINTF("t:%.6f\tx:%.4f\ty:%.4f\r\n",t,(float) x,(float)y);


But for some reason if I have x = -0.4935 in the debugger   The output of the PRINTF for that negative float number is:  -1.4935.   Is there a bug for negative numbers in PRINTF?


And why doesn't the library just use the standard lower case printf?  Why the non-standard uppercase version?