Double variable problem...
I need to send the variable (double) into the function as a char*
Code:
void changecolor(char* word, int color){
textcolor(color); //changes text to the color given through the argument
cprintf("%s", word); //outputs the string in the given color
textcolor(LIGHTGRAY); //change color back to the default light gray
} //end void changecolor
tried this:
Code:
char* mon;
mon = (char)monthly_interest;
changecolor(mon, color);
monthly_interest is a double?? why? what did I go wrong? thanks!