This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PROBLEMS WITH SPRINTF

Hi
I'm trying to convert a double number in scinetific notation into a string of 4 characters. I have written this code

char result[4];
double corr;
sprintf(result,"e", corr);

corr is a decimal number in scientific notation, i have to send this 4 characters to a LCD display, but result variable don't seems to change from value 0x40000020. I use the realview compiler from keil. Please help me
Regards
Luca

0