Hi folks!
I need to convert a float to a string:
void C_CALC(void) { char i; float fFINAL_CAPACITANCE; unsigned char sTEMP_MSG[15]; fFINAL_CAPACITANCE = 1/(6.283*fINDUCTOR_SQUARE*lFREQUENCY); lcd_gotoxy(0,0); ftoa(fFINAL_CAPACITANCE,9,sTEMP_MSG); for(i=0;i<15;i++) { lcd_gotoxy(i,0); lcd_putchar(sTEMP_MSG[i]); } }
BUT this ftoa above gives me the maximum of 5 decimal points...I needed more....If I use ftoe it gives me the correct aswer, but with that e-9 suffix...
I'd like to know if I am doing something wrong or ftoa gives at maximum 5 decimal points only...
Thank You!