.\" @(#)ecvt.3 6.1 (Berkeley) %G%
ecvt, fcvt, gcvt \- output conversion
.B char *ecvt(value, ndigit, decpt, sign)
.B int ndigit, *decpt, *sign;
.B char *fcvt(value, ndigit, decpt, sign)
.B int ndigit, *decpt, *sign;
.B char *gcvt(value, ndigit, buf)
to a null-terminated string of
ASCII digits and returns a pointer thereto.
The position of the decimal point relative to the
beginning of the string is stored indirectly through
(negative means to the left of the returned digits).
If the sign of the result is negative, the word pointed to by
is non-zero, otherwise it is zero. The low-order digit is rounded.
.IR Fcvt " is identical to " "ecvt\fR, except that the correct digit"
has been rounded for Fortran F-format output of the number
to a null-terminated ASCII string in
significant digits in Fortran F format if possible, otherwise E format,
ready for printing. Trailing zeros may be suppressed.
The return values point to static data
whose content is overwritten by each call.