"char *ecvt(double "number", int "ndigits", int *"decpt, "int *"sign);

"char *fcvt(double "number", int "ndigits", int *"decpt, "int *"sign);

The fcvt() function is identical to ecvt(), except that ndigits specifies the number of digits after the decimal point.