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.

LAUNCHXL-CC2640R2: Why does Display_printf default float values to 4 decimal places and no other format specifier works

Part Number: LAUNCHXL-CC2640R2

I am trying to use Display_printf to print float values to 1 decimal place but the format specifier "%.1f" for float does not work and all it is doing is print out values to 4 decimal places.

example:

By way of illustration, I simply amended the example given in the documentation.

Display_printf(displayHandle, 0, 0, "ADC: %d", adcValue);            // works fine
Display_printf(displayHandle, 1, 0, "float: %.1f", adcValue/1.0);    // does not work