Ernesto Andres Rincon Cruz

printf function works but not float variables.

Discussion created by Ernesto Andres Rincon Cruz on Apr 27, 2011
Latest reply on Apr 28, 2011 by CrasyCat

Hello,

 

In my program I have the Following definitions:

 

 

extern void TERMIO_Init(void){cdc_init();}        extern void TERMIO_PutChar(UINT8 ch){cdc_write(ch);}

 

The printf function works well for variables char, int, long. Using% u,% x.

But float variables does not work. to write% f, prints numbers not close to being thenumber that is stored in RAM.

What should be done so that you can print data float?

Outcomes