Con Verse,
Thank you for your replay. I cannot get function sprintf to work with a floating variable. It returns a 0.000
Code:
char buffer1[5];
float value1 = 3.123;
sprintf(buffer1,"%5.3f", value1);
PRINTF("\rUsing function sprintf() to convert floating number %f to a string produces the following string: %s\n", value1, buffer1);
Tera Terminal Display:
Using function sprintf() to convert floating number 3.123000 to a string produces the following string: 0.000
Do you have any suggestions?
Thanks,
Joseph Grigaliunas