Tiziano Tarducci

CW6.3 printf floating point

Discussion created by Tiziano Tarducci on Jul 5, 2006
Latest reply on Jul 12, 2006 by Tiziano Tarducci
I'm using CW6.3 with M52233DEMO board.
I try to use floating point.
It is OK for calculates but not for printf (?).
 
The followings source code  ( wheare x=1038.110) :
 
printf(sf,"%5.2f\n\r%6.3f\n\r%7.4f\n\r", x, x, x);
 
produce the following output on the uart debug console :
 
%5.2f
%5.2f
%6.3f
%7.4f
 
Why ?
 
 
 
 

Outcomes