Searched refs:ndigit (Results 1 – 4 of 4) sorted by relevance
/php-src/main/ |
H A D | snprintf.c | 62 static char * __cvt(double value, int ndigit, int *decpt, bool *sign, int fmode, int pad) /* {{{ */ in __cvt() argument 68 if (ndigit < 0) { in __cvt() 69 siz = -ndigit + 1; in __cvt() 71 siz = ndigit + 1; in __cvt() 78 if ((rve = s = (char *)malloc(ndigit?siz:2)) == NULL) { in __cvt() 83 if (!ndigit) { in __cvt() 87 p = zend_dtoa(value, fmode + 2, ndigit, decpt, sign, &rve); in __cvt() 121 static inline char *php_ecvt(double value, int ndigit, int *decpt, bool *sign) /* {{{ */ in php_ecvt() argument 123 return(__cvt(value, ndigit, decpt, sign, 0, 1)); in php_ecvt() 127 static inline char *php_fcvt(double value, int ndigit, int *decpt, bool *sign) /* {{{ */ in php_fcvt() argument [all …]
|
H A D | snprintf.h | 78 PHPAPI char * php_0cvt(double value, int ndigit, char dec_point, char exponent, char *buf);
|
/php-src/Zend/ |
H A D | zend_strtod.h | 35 ZEND_API char *zend_gcvt(double value, int ndigit, char dec_point, char exponent, char *buf);
|
H A D | zend_strtod.c | 4509 ZEND_API char *zend_gcvt(double value, int ndigit, char dec_point, char exponent, char *buf) in zend_gcvt() argument 4514 int mode = ndigit >= 0 ? 2 : 0; in zend_gcvt() 4517 ndigit = 17; in zend_gcvt() 4519 digits = zend_dtoa(value, mode, ndigit, &decpt, &sign, NULL); in zend_gcvt() 4525 …snprintf(buf, ndigit + 1, "%s%s", (sign && *digits == 'I') ? "-" : "", *digits == 'I' ? "INF" : "N… in zend_gcvt() 4535 if ((decpt >= 0 && decpt > ndigit) || decpt < -3) { /* use E-style */ in zend_gcvt()
|
Completed in 15 milliseconds