⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ecvt.3

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 3
字号:
.TH ECVT 3 .SH NAMEecvt, fcvt, gcvt \- output conversion.SH SYNOPSIS.B char *ecvt(value, ndigit, decpt, sign).br.B double value;.br.B int ndigit, *decpt, *sign;.PP.B char *fcvt(value, ndigit, decpt, sign).br.B double value;.br.B int ndigit, *decpt, *sign;.PP.B char *gcvt(value, ndigit, buf).br.B double value;.br.B char *buf;.SH DESCRIPTION.I Ecvtconverts the .I valueto a null-terminated string of.I ndigitASCII digitsand returns a pointer thereto.The position of the decimal point relative to thebeginning of the string is stored indirectlythrough.IR decpt ""(negative means to the left of thereturned digits).If the sign of the result is negative,the word pointed to by.IR sign ""is non-zero, otherwiseit is zero.The low-order digit is rounded..PP.IR Fcvt " is identical to " "ecvt\fR, except that the correct digit"has been rounded for Fortran F-format output of the numberof digits specified by.IR \(*_ndigits ..PP.I Gcvtconverts the.I valueto a null-terminated ASCII string in.I bufand returns a pointer to .I buf.It attempts to produce.I ndigitsignificant digits in Fortran F format ifpossible, otherwise E format, ready forprinting.Trailing zeros may be suppressed..SH "SEE ALSO"printf(3).SH BUGSThe return values point to static datawhose content is overwritten by each call.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -