Searched defs:digits (Results 1 - 7 of 7) sorted by relevance

/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Doutput.c45 /* This structure is used for saving digits in the conversion process. */
51 /* The reference string for digits. */
55 /* A special output routine for "multi-character digits." Exactly
70 char digits[40]; local
74 snprintf(digits, sizeof(digits), "%ld", val);
75 len = strlen (digits);
82 (*out_char) (digits[ix]);
97 stk_rec *digits, *temp; local
135 digits
[all...]
H A Dstr2num.c46 int digits, strscale; local
53 /* Check for valid number and count digits. */
55 digits = 0;
60 while (isdigit((int)*ptr)) ptr++, digits++; /* digits */
62 while (isdigit((int)*ptr)) ptr++, strscale++; /* digits */
63 if ((*ptr != '\0') || (digits+strscale == 0))
71 if (digits == 0)
74 digits = 1;
76 *num = bc_new_num (digits, strscal
[all...]
/PHP_TRUNK/ext/standard/
H A Dmath.c1063 static char digits[] = "0123456789abcdefghijklmnopqrstuvwxyz"; local
1078 *--ptr = digits[value % base];
1093 static char digits[] = "0123456789abcdefghijklmnopqrstuvwxyz"; local
1114 *--ptr = digits[(int) fmod(fvalue, base)];
1352 * separator every three digits */
H A Dvar_unserializer.c1185 int digits = YYCURSOR - start - 3; local
1188 digits--;
1192 if (digits >= MAX_LENGTH_OF_LONG - 1) {
1193 if (digits == MAX_LENGTH_OF_LONG - 1) {
/PHP_TRUNK/main/
H A Dsnprintf.c144 char *digits, *dst, *src; local
147 digits = zend_dtoa(value, 2, ndigit, &decpt, &sign, NULL);
153 snprintf(buf, ndigit + 1, "%s%s", (sign && *digits == 'I') ? "-" : "", *digits == 'I' ? "INF" : "NAN");
154 zend_freedtoa(digits);
171 src = digits;
207 src = digits;
214 for (i = 0, src = digits; i < decpt; i++) {
222 if (src == digits) {
226 for (i = decpt; digits[
488 register char *digits = (format == 'X') ? upper_digits : low_digits; local
[all...]
/PHP_TRUNK/ext/json/
H A Djson.c48 static const char digits[] = "0123456789abcdef"; variable
562 smart_str_appendc(buf, digits[(us & 0xf000) >> 12]);
563 smart_str_appendc(buf, digits[(us & 0xf00) >> 8]);
564 smart_str_appendc(buf, digits[(us & 0xf0) >> 4]);
565 smart_str_appendc(buf, digits[(us & 0xf)]);
759 * digits (exponent notation will result in the number
/PHP_TRUNK/Zend/
H A Dzend_operators.c2667 int digits = 0, dp_or_e = 0; local
2697 /* Count the number of digits. If a decimal point/exponent is found,
2699 * a full match, stop when there are too many digits for a long */
2700 for (type = IS_LONG; !(digits >= MAX_LENGTH_OF_LONG && (dval || allow_errors == 1)); digits++, ptr++) {
2720 if (digits >= MAX_LENGTH_OF_LONG) {
2732 * the digits if we need to check for a full match */
2753 if (digits == MAX_LENGTH_OF_LONG - 1) {
2754 int cmp = strcmp(&ptr[-digits], long_min_digits);

Completed in 13 milliseconds