AnsweredAssumed Answered

sprintf

Question asked by charles on Jun 13, 2011
I am using cosmic tools with the stm8-discovery board.

char buffer [15];
u8 n;
double x;
x = 300.02;
n=sprintf(buffer,"%.2f",x);

when i run it n = null and the buffer is empty.
what is my problelm?
charles arnett

Outcomes