sokha ck

Problem with sprintf and float

Discussion created by sokha ck on Oct 19, 2006
Latest reply on Nov 7, 2008 by Van Truong
I use DEMO9s12xdt512 with CodeWarrior and i have a problem to use sprintf with float.
In my project i have included the ainsixbf.lib and stdio.h, here my code :
 double toto;
 char chaine[30];
 toto = 1,2345;
The first sprintf give the right result but when i want to convert "toto", the string don't have the good result.
Any idea ?