BSD 4_4 development
[unix-history] / usr / share / man / cat3 / fcvt.0
CommitLineData
be8ee4f0
C
1
2
3
4ECVT(3) BSD Programmer's Manual ECVT(3)
5
6
7N\bNA\bAM\bME\bE
8 ecvt, fcvt, gcvt - output conversion
9
10S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
11 c\bch\bha\bar\br *\b*e\bec\bcv\bvt\bt(\b(v\bva\bal\blu\bue\be,\b, n\bnd\bdi\big\bgi\bit\bt,\b, d\bde\bec\bcp\bpt\bt,\b, s\bsi\big\bgn\bn)\b)
12 d\bdo\bou\bub\bbl\ble\be v\bva\bal\blu\bue\be;\b;
13 i\bin\bnt\bt n\bnd\bdi\big\bgi\bit\bt,\b, *\b*d\bde\bec\bcp\bpt\bt,\b, *\b*s\bsi\big\bgn\bn;\b;
14
15 c\bch\bha\bar\br *\b*f\bfc\bcv\bvt\bt(\b(v\bva\bal\blu\bue\be,\b, n\bnd\bdi\big\bgi\bit\bt,\b, d\bde\bec\bcp\bpt\bt,\b, s\bsi\big\bgn\bn)\b)
16 d\bdo\bou\bub\bbl\ble\be v\bva\bal\blu\bue\be;\b;
17 i\bin\bnt\bt n\bnd\bdi\big\bgi\bit\bt,\b, *\b*d\bde\bec\bcp\bpt\bt,\b, *\b*s\bsi\big\bgn\bn;\b;
18
19 c\bch\bha\bar\br *\b*g\bgc\bcv\bvt\bt(\b(v\bva\bal\blu\bue\be,\b, n\bnd\bdi\big\bgi\bit\bt,\b, b\bbu\buf\bf)\b)
20 d\bdo\bou\bub\bbl\ble\be v\bva\bal\blu\bue\be;\b;
21 c\bch\bha\bar\br *\b*b\bbu\buf\bf;\b;
22
23D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
24 T\bTh\bhe\bes\bse\be i\bin\bnt\bte\ber\brf\bfa\bac\bce\bes\bs a\bar\bre\be o\bob\bbs\bso\bol\ble\bet\bte\bed\bd b\bby\by p\bpr\bri\bin\bnt\btf\bf(\b(3\b3)\b).\b.
25 T\bTh\bhe\bey\by a\bar\bre\be a\bav\bva\bai\bil\bla\bab\bbl\ble\be f\bfr\bro\bom\bm t\bth\bhe\be c\bco\bom\bmp\bpa\bat\bti\bib\bbi\bil\bli\bit\bty\by l\bli\bib\bbr\bra\bar\bry\by,\b, l\bli\bib\bbc\bco\bom\bm-\b-
26 p\bpa\bat\bt.\b.
27
28 _\bE_\bc_\bv_\bt converts the _\bv_\ba_\bl_\bu_\be to a null-terminated string of
29 _\bn_\bd_\bi_\bg_\bi_\bt ASCII digits and returns a pointer thereto. The
30 position of the decimal point relative to the beginning of
31 the string is stored indirectly through _\bd_\be_\bc_\bp_\bt (negative
32 means to the left of the returned digits). If the sign of
33 the result is negative, the word pointed to by _\bs_\bi_\bg_\bn is
34 non-zero, otherwise it is zero. The low-order digit is
35 rounded.
36
37 _\bF_\bc_\bv_\bt is identical to _\be_\bc_\bv_\bt, except that the correct digit
38 has been rounded for Fortran F-format output of the number
39 of digits specified by _\bn_\bd_\bi_\bg_\bi_\bt_\bs.
40
41 _\bG_\bc_\bv_\bt converts the _\bv_\ba_\bl_\bu_\be to a null-terminated ASCII string
42 in _\bb_\bu_\bf and returns a pointer to _\bb_\bu_\bf_\b. It attempts to pro-
43 duce _\bn_\bd_\bi_\bg_\bi_\bt significant digits in Fortran F format if pos-
44 sible, otherwise E format, ready for printing. Trailing
45 zeros may be suppressed.
46
47S\bSE\bEE\bE A\bAL\bLS\bSO\bO
48 printf(3)
49
50B\bBU\bUG\bGS\bS
51 The return values point to static data whose content is
52 overwritten by each call.
53
54
55
56
57
58
59
60
617th Edition May 28, 1992 1
62
63
64
65
66