Lines Matching refs:ndigits

35 fconvert(double arg, int ndigits, int *decpt, int *sign, char *buf)
50 if (ndigits <= -DECIMAL_STRING_LENGTH)
51 ndigits = -DECIMAL_STRING_LENGTH + 1;
52 else if (ndigits >= DECIMAL_STRING_LENGTH)
53 ndigits = DECIMAL_STRING_LENGTH - 1;
54 dm.ndigits = ndigits; /* Number of digits after point. */
60 *decpt = dr.exponent + dr.ndigits;
61 for (i = 0; i < dr.ndigits; i++)
67 if (ndigits > 0 && dr.exponent > -ndigits) {
68 while (i < dr.ndigits + dr.exponent + ndigits)
76 for (i = 1; i < ndigits; i++)
82 __infnanstring(dr.fpclass, ndigits, buf);
89 sfconvert(single *arg, int ndigits, int *decpt, int *sign, char *buf)
104 if (ndigits <= -DECIMAL_STRING_LENGTH)
105 ndigits = -DECIMAL_STRING_LENGTH + 1;
106 else if (ndigits >= DECIMAL_STRING_LENGTH)
107 ndigits = DECIMAL_STRING_LENGTH - 1;
108 dm.ndigits = ndigits; /* Number of digits after point. */
114 *decpt = dr.exponent + dr.ndigits;
115 for (i = 0; i < dr.ndigits; i++)
121 if (ndigits > 0 && dr.exponent > -ndigits) {
122 while (i < dr.ndigits + dr.exponent + ndigits)
130 for (i = 1; i < ndigits; i++)
136 __infnanstring(dr.fpclass, ndigits, buf);
143 qfconvert(quadruple *arg, int ndigits, int *decpt, int *sign, char *buf)
158 if (ndigits <= -DECIMAL_STRING_LENGTH)
159 ndigits = -DECIMAL_STRING_LENGTH + 1;
160 else if (ndigits >= DECIMAL_STRING_LENGTH)
161 ndigits = DECIMAL_STRING_LENGTH - 1;
162 dm.ndigits = ndigits; /* Number of digits after point. */
191 *decpt = dr.exponent + dr.ndigits;
192 for (i = 0; i < dr.ndigits; i++)
199 for (i = 1; i < ndigits; i++)
205 __infnanstring(dr.fpclass, ndigits, buf);