AnsweredAssumed Answered

CW10.4 printf float number?

Question asked by Daniel Chai on Jul 23, 2013
Latest reply on Jul 23, 2013 by Daniel Chai



I am using CW10.4, k60N512. Now I am trying to print a float number using

printf("Float number is %f\n", fnum);

but it prints"Float number is f".

I read some and configure MQX_INCLUDE_FLOATING_POINT_IO  to 1 in smallest_config.h which is included by user_config.h, but it still prints the same content.

I tried to include <stdio.h>, but it give me many errors after I including it in my project.


Is there anything  I miss or configure wrong?