I am using uVison4 Compiler and STM32F103 Device. I using sprintf then float variables not working properly. Please help me.
float fvalue; char cTest[10];
memset(cTest,0x00,sizeof(cTest)); fvalue=3.234; sprintf(cTest, "%.3f", fvalue);
The results are not 3.234. It is 0.000.