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.

CCS/SW-EK-TM4C123GXL: UARTprintf problem

Part Number: SW-EK-TM4C123GXL
Other Parts Discussed in Thread: TMP006

Tool/software: Code Composer Studio

Hi,

I have a problem with  UARTprintf:

UARTprintf("Value is %d\n",2) prints Value is 2


but


UARTprintf("Value is %d\n",2.1) prints Value is 760

In fact for any decimal number it is always wrong. Am I misunderstanding the %d format?

Thanks