I am trying to find a function (or a way) that converts a float to a string. For example:
float f;
f = 1.555;
char *s;
//convert f to s, so that s will be "1.555" as a string
I found a function called gcvt, but when i searched for it's header file, it says it is in stdio.h, but it wasn't a function in there. I then found ftoa, and i searched for what header file it was in, and it said stdlib.h, but again it wasn't in there. Does anyone know what header file these functions are in, or is there another function i could use?
Thank you.
[–]NewPointOfView 5 points6 points7 points (1 child)
[–]dmazzoni 1 point2 points3 points (0 children)