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.

ccs8 中sprint函数使用问题

char str[8];
sprintf(str,"%.3f",num);

我是想把一个浮点数转换为字符串格式然后用屏幕显示或者发送。

但是这个sprintf(str,"%.3f",num);报错。

"../DisplayLib/oled.c", line 294: error #2632: Modifiers are not allowed in printf_support=minimal mode
"../DisplayLib/oled.c", line 294: error #2631: Conversion f not allowed in printf_support=minimal mode

求答案谢谢