Lines Matching refs:decpt
69 static char * __cvt(double value, int ndigit, int *decpt, int *sign, int fmode, int pad) /* {{{ */ in __cvt() argument
83 *decpt = 1 - fmode; /* 1 for 'e', 0 for 'f' */ in __cvt()
94 p = zend_dtoa(value, fmode + 2, ndigit, decpt, sign, &rve); in __cvt()
95 if (*decpt == 9999) { in __cvt()
97 *decpt = 0; in __cvt()
104 siz += *decpt; in __cvt()
128 static inline char *php_ecvt(double value, int ndigit, int *decpt, int *sign) /* {{{ */ in php_ecvt() argument
130 return(__cvt(value, ndigit, decpt, sign, 0, 1)); in php_ecvt()
134 static inline char *php_fcvt(double value, int ndigit, int *decpt, int *sign) /* {{{ */ in php_fcvt() argument
136 return(__cvt(value, ndigit, decpt, sign, 1, 1)); in php_fcvt()
143 int i, decpt, sign; in php_gcvt() local
149 digits = zend_dtoa(value, mode, ndigit, &decpt, &sign, NULL); in php_gcvt()
150 if (decpt == 9999) { in php_gcvt()
165 if ((decpt >= 0 && decpt > ndigit) || decpt < -3) { /* use E-style */ in php_gcvt()
167 if (--decpt < 0) { in php_gcvt()
169 decpt = -decpt; in php_gcvt()
189 if (decpt < 10) { in php_gcvt()
190 *dst++ = '0' + decpt; in php_gcvt()
194 for (sign = decpt, i = 0; (sign /= 10) != 0; i++) in php_gcvt()
197 while (decpt != 0) { in php_gcvt()
198 dst[i--] = '0' + decpt % 10; in php_gcvt()
199 decpt /= 10; in php_gcvt()
202 } else if (decpt < 0) { in php_gcvt()
208 } while (++decpt < 0); in php_gcvt()
216 for (i = 0, src = digits; i < decpt; i++) { in php_gcvt()
228 for (i = decpt; digits[i] != '\0'; i++) { in php_gcvt()