[En-Nut-Discussion] Write floating data to a string

Daniel Makus daniel.makus at fhtw-berlin.de
Fri Oct 29 12:10:05 CEST 2004


Hallo,

simple code:

char out[20];
float f=1.456;
sprintf(out,"%1.3f",(double)f);

after execution 

out= "?"

what is wrong ?



More information about the En-Nut-Discussion mailing list