Convert a number to a string in C - best way
We can use sprintf() function to conver any number to string in C. Number can be any integer or float.
Here is an implementation of it.
#include<stdio.h>
int main()
{
char final[100];
float number = 98.12;
sprintf(final, "%f", number);
printf("\nString of given number is %s", final);
return 0;
}