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.

CC2652RB: 用 Display 打印浮点数时,如何指定小数点位数

Part Number: CC2652RB

Hi Ti,

如题所述,我在用如下语句打印时:

Display_printf(display, 0, 0, "%.1f, %.2f, %.3f, %.4f, %.5f, %.6f, %.7f, %.8f", ...);

结果如下:

0.0026, 0.0075, 0.0118, 0.0086, -0.0088, -0.0428, -0.0970, 0.4180

请问,怎么才能控制小数位数呢?