CE-Programming / libraries

Common libraries for use on the TI84+CE/TI83PCE calculators
BSD 2-Clause "Simplified" License
141 stars 11 forks source link

I can't get sprintf to work #32

Closed onlymx13 closed 6 years ago

onlymx13 commented 6 years ago

I run code

//all required includes
char * floatToString (double f) {
char buffer[50];
sprintf(buffer,"%f",f);
return buffer;
}
void main() {
//everything necessary to set up gfx
double number = 25.25;
gfx_PrintStringXY(number, 50, 50);
}

and the screen gets messed up and the float doesn't print properly. Is this a mistake of mine?

onlymx13 commented 6 years ago

Oops, I just realized this is old