Lines Matching refs:decpt
71 static char * __cvt(double value, int ndigit, int *decpt, int *sign, int fmode, int pad) /* {{{ */ in __cvt() argument
85 *decpt = 1 - fmode; /* 1 for 'e', 0 for 'f' */ in __cvt()
96 p = zend_dtoa(value, fmode + 2, ndigit, decpt, sign, &rve); in __cvt()
97 if (*decpt == 9999) { in __cvt()
99 *decpt = 0; in __cvt()
106 siz += *decpt; in __cvt()
130 static inline char *php_ecvt(double value, int ndigit, int *decpt, int *sign) /* {{{ */ in php_ecvt() argument
132 return(__cvt(value, ndigit, decpt, sign, 0, 1)); in php_ecvt()
136 static inline char *php_fcvt(double value, int ndigit, int *decpt, int *sign) /* {{{ */ in php_fcvt() argument
138 return(__cvt(value, ndigit, decpt, sign, 1, 1)); in php_fcvt()
145 int i, decpt, sign; in php_gcvt() local
151 digits = zend_dtoa(value, mode, ndigit, &decpt, &sign, NULL); in php_gcvt()
152 if (decpt == 9999) { in php_gcvt()
167 if ((decpt >= 0 && decpt > ndigit) || decpt < -3) { /* use E-style */ in php_gcvt()
169 if (--decpt < 0) { in php_gcvt()
171 decpt = -decpt; in php_gcvt()
191 if (decpt < 10) { in php_gcvt()
192 *dst++ = '0' + decpt; in php_gcvt()
196 for (sign = decpt, i = 0; (sign /= 10) != 0; i++) in php_gcvt()
199 while (decpt != 0) { in php_gcvt()
200 dst[i--] = '0' + decpt % 10; in php_gcvt()
201 decpt /= 10; in php_gcvt()
204 } else if (decpt < 0) { in php_gcvt()
210 } while (++decpt < 0); in php_gcvt()
218 for (i = 0, src = digits; i < decpt; i++) { in php_gcvt()
230 for (i = decpt; digits[i] != '\0'; i++) { in php_gcvt()