gcvt - convert a floating-point number to a string
#include <stdlib.h> char *gcvt(double value, int ndigit, char *buf);
Refer to ecvt().