hey dude check this out,
#include <stdio.h>
int main ()
{
char buffer [50];
int n, a=5, b=3;
n=sprintf (buffer, "%d plus %d is %d", a, b, a+b);
printf ("[%s] is a %d char long string\n",buffer,n);
return 0;
}
now what this does is use sprintf to convert the ints into a string format to use floats just change the %d to %f and there are a lot of other diffrent switches that can be used you can even format the buffer to contain floats and ints and whatever else.
then instead of using printf just dump the buffer into whatever you use to print.
[edit forgot to say n contains string length but you dont have to assign sprintf to anything if you dont want.]