Hai
I have a problem with sprintf() function.I want to store the float value in buffer but it is not done with sprintf().
i written like the
float value=53.0000;
char buff[20];
sprintf(buff,"%f",value);
please sugget me that
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hai
I have a problem with sprintf() function.I want to store the float value in buffer but it is not done with sprintf().
i written like the
float value=53.0000;
char buff[20];
sprintf(buff,"%f",value);
please sugget me that
I have a problem with sprintf() function.I want to store the float value in buffer but it is not done with sprintf().
Perhaps because the printf function provided by your undisclosed toolchain/library does not support floating point format ?
please sugget me that
1. check the library you use / select the proper library
2. use a spell checker
float value=53.0000;
BTW, "53.0000" is NOT a float value.