|
|
1.1 ! root 1: .\" @(#)ecvt.3 6.3 (Berkeley) 5/17/89 ! 2: .\" ! 3: .TH ECVT 3 "May 17, 1989" ! 4: .AT 3 ! 5: .SH NAME ! 6: ecvt, fcvt, gcvt \- output conversion ! 7: .SH SYNOPSIS ! 8: .nf ! 9: .B char *ecvt(value, ndigit, decpt, sign) ! 10: .B double value; ! 11: .B int ndigit, *decpt, *sign; ! 12: .PP ! 13: .B char *fcvt(value, ndigit, decpt, sign) ! 14: .B double value; ! 15: .B int ndigit, *decpt, *sign; ! 16: .PP ! 17: .B char *gcvt(value, ndigit, buf) ! 18: .B double value; ! 19: .B char *buf; ! 20: .fi ! 21: .SH DESCRIPTION ! 22: .ft B ! 23: These interfaces are obsoleted by printf(3). ! 24: .br ! 25: They are available from the compatibility library, libcompat. ! 26: .ft R ! 27: .PP ! 28: .I Ecvt ! 29: converts the ! 30: .I value ! 31: to a null-terminated string of ! 32: .I ndigit ! 33: ASCII digits and returns a pointer thereto. ! 34: The position of the decimal point relative to the ! 35: beginning of the string is stored indirectly through ! 36: .IR decpt "" ! 37: (negative means to the left of the returned digits). ! 38: If the sign of the result is negative, the word pointed to by ! 39: .IR sign "" ! 40: is non-zero, otherwise it is zero. The low-order digit is rounded. ! 41: .PP ! 42: .IR Fcvt " is identical to " "ecvt\fR, except that the correct digit" ! 43: has been rounded for Fortran F-format output of the number ! 44: of digits specified by ! 45: .IR \(*_ndigits . ! 46: .PP ! 47: .I Gcvt ! 48: converts the ! 49: .I value ! 50: to a null-terminated ASCII string in ! 51: .I buf ! 52: and returns a pointer to ! 53: .I buf. ! 54: It attempts to produce ! 55: .I ndigit ! 56: significant digits in Fortran F format if possible, otherwise E format, ! 57: ready for printing. Trailing zeros may be suppressed. ! 58: .SH "SEE ALSO" ! 59: printf(3) ! 60: .SH BUGS ! 61: The return values point to static data ! 62: whose content is overwritten by each call.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.