📄 ecvt.3
字号:
.th ECVT III 4/30/73.sh NAMEecvt, fcvt \*- output conversion.sh SYNOPSIS.ft Bjsr pc,ecvt.s3jsr pc,fcvt.s3char *ecvt(value, ndigit, decpt, sign).brdouble value;.brint ndigit, *decpt, *sign;.s3char *fcvt(value, ndigit, decpt, sign).br.li....ft R.sh DESCRIPTION.it Ecvtis called with a floating point number in fr0..s3On exit, the number has been converted into astring of ascii digits in a buffer pointed to by r0.The number of digits produced is controlledby a global variable \fI\*_ndigits\fR..s3Moreover, the position of the decimal point iscontained in r2: r2=0 means the d.p. is at theleft hand end of the string of digits;r2>0 means the d.p. is within or to the rightof the string..s3The sign of the number is indicated by r1 (0 for +; 1 for \*-)..s3The low order digit has suffered decimal rounding(i. e. may have been carried into)..s3From C,the.it valueis converted and a pointer to a null-terminatedstring of \fIndigit\fR digits is returned.The position of the decimal point is stored indirectlythrough \fIdecpt\fR (negative means to the left of thereturned digits).If the sign of the result is negative,the word pointed to by \fIsign\fR is non-zero, otherwiseit is zero..s3\fIFcvt\fR is identical to \fIecvt\fR, except that the correct digitbeen rounded for F-style output of the numberof digits specified by \fI\(*_ndigits\fR..sh "SEE ALSO"printf (III).sh BUGS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -