[En-Nut-Discussion] Float problem

Sigurd Kleppan 021243 at student.hit.no
Fri Oct 29 16:34:44 CEST 2004


Hey!

I have a float and i want to convert it into a string. How do i do it?

float tall=100;
char f[10];

tall=tall/6;

printf("%f",tall");  /// PRINTER OUT 16.66666

How do I convert?
t[0]=1
t[1]=6
t[2]=.
t[3]=6
t[4]=6
.....

regards
Sigurd




More information about the En-Nut-Discussion mailing list