Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ecvt(3) — sys5 — Apollo Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

printf(3)



ECVT(3)                 DOMAIN/IX BSD4.2                  ECVT(3)



NAME
     ecvt, fcvt, gcvt - output conversion

USAGE
     char *ecvt(value, ndigit, decpt, sign)
     double value;
     int ndigit, *decpt, *sign;

     char *fcvt(value, ndigit, decpt, sign)
     double value;
     int ndigit, *decpt, *sign;

     char *gcvt(value, ndigit, buf)
     double value;
     char *buf


DESCRIPTION
     Ecvt converts the value to a null-terminated string of ndi-
     git ASCII digits and returns a pointer to the string.  The
     position of the decimal point relative to the beginning of
     the string is stored indirectly through decpt (negative
     means to the left of the returned digits).  If the sign of
     the result is negative, the word that sign points to is
     non-zero; otherwise, it is zero.  The low-order digit is
     rounded.

     Fcvt is similar to ecvt, except that the correct digit has
     been rounded for FORTRAN F-format output of the number of
     digits specified by ndigits.

     Gcvt converts the value to a null-terminated ASCII string in
     buf and returns a pointer to buf. It attempts to produce
     ndigit significant digits in FORTRAN F format if possible;
     otherwise, it produces E format, ready for printing.  Trail-
     ing zeros may be suppressed.

NOTES
     The return values point to static data that each call
     overwrites.

RELATED INFORMATION
     printf(3)










Printed 12/4/86                                            ECVT-1





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026