Home
last modified time | relevance | path

Searched refs:digits (Results 1 – 25 of 55) sorted by relevance

123

/PHP-5.6/ext/bcmath/libbcmath/src/
H A Dstr2num.c46 int digits, strscale; in bc_str2num() local
55 digits = 0; in bc_str2num()
60 while (isdigit((int)*ptr)) ptr++, digits++; /* digits */ in bc_str2num()
63 if ((*ptr != '\0') || (digits+strscale == 0)) in bc_str2num()
71 if (digits == 0) in bc_str2num()
74 digits = 1; in bc_str2num()
76 *num = bc_new_num (digits, strscale); in bc_str2num()
95 digits = 0; in bc_str2num()
97 for (;digits > 0; digits--) in bc_str2num()
H A Doutput.c70 char digits[40]; local
74 snprintf(digits, sizeof(digits), "%ld", val);
75 len = strlen (digits);
97 stk_rec *digits, *temp; in bc_out_num() local
135 digits = NULL; in bc_out_num()
158 temp->next = digits; in bc_out_num()
159 digits = temp; in bc_out_num()
164 if (digits != NULL) in bc_out_num()
167 while (digits != NULL) in bc_out_num()
169 temp = digits; in bc_out_num()
[all …]
/PHP-5.6/ext/bcmath/libbcmath/
H A DFAQ11 GMP has "integers" (no digits after a decimal), "rational numbers"
15 a "scale" that represent the number of digits to represent after the
17 calculate an exact number of digits after the decimal point regardless
18 of the number of digits in the integer part. GMP floats have a
20 up dropping digits BC must calculate.
/PHP-5.6/ext/date/tests/
H A Didate_variation4.phpt25 'Year (1 or 2 digits)' => 'y',
26 'Year 4 digits' => 'Y',
58 --Year (1 or 2 digits)--
61 --Year 4 digits--
H A Dbug41844.phpt2 Bug #41844 (Format returns incorrect number of digits for negative years -0001 to -0999)
H A Dbug50392.phpt2 Bug #50392 (date_create_from_format enforces 6 digits for 'u' format character)
H A Didate_variation6.phpt2 Test idate() function : usage variation - Checking return of year(1 or 2 digits) format starting wi…
/PHP-5.6/ext/ctype/tests/
H A Dctype_xdigit_variation4.phpt14 * 1. contain hexadecimal digits
15 * 2. correspond to character codes recognised as hexadecimal digits (see variation2)
23 // contain hexadecimal digits but do not correspond to 'correct' ints
29 // contain hexadecimal digits but do not correspond to 'correct' ints
H A Dctype_digit_variation2.phpt14 * valid decimal digits
H A Dctype_print_variation3.phpt33 "03F", // hexadecimal 'digits'
H A Dctype_alnum_variation3.phpt32 "03F", // hexadecimal 'digits'
H A Dctype_alpha_variation3.phpt33 "03F", // hexadecimal 'digits'
/PHP-5.6/main/
H A Dsnprintf.c144 char *digits, *dst, *src; in php_gcvt() local
153 …snprintf(buf, ndigit + 1, "%s%s", (sign && *digits == 'I') ? "-" : "", *digits == 'I' ? "INF" : "N… in php_gcvt()
154 zend_freedtoa(digits); in php_gcvt()
171 src = digits; in php_gcvt()
207 src = digits; in php_gcvt()
214 for (i = 0, src = digits; i < decpt; i++) { in php_gcvt()
222 if (src == digits) { in php_gcvt()
226 for (i = decpt; digits[i] != '\0'; i++) { in php_gcvt()
227 *dst++ = digits[i]; in php_gcvt()
232 zend_freedtoa(digits); in php_gcvt()
[all …]
/PHP-5.6/ext/standard/tests/strings/
H A Dmoney_format_basic1.phpt25 // Format with 14 positions of width, 8 digits of
28 echo "Format values with 14 positions, 8 digits to left, 2 to right using national format\n";
61 Format values with 14 positions, 8 digits to left, 2 to right using national format
H A Dbug36392.phpt2 Bug #36392 (wrong number of decimal digits with %e specifier in sprintf)
H A Dsprintf_variation52.phpt50 Notice: sprintf(): Requested precision of 988 digits was truncated to PHP maximum of %d digits in %…
/PHP-5.6/ext/pcre/tests/
H A Dpreg_match_all_edit_basic.phpt13 …G_PATTERN_ORDER, -10)); //finds any digit that's not 4 10 digits from the end(1 mat…
22 var_dump(preg_match_all('/\d{2}$/', $string, $match4)); //tries to find 2 digits at the en…
H A Dpreg_match_all_basic.phpt10 …SET_CAPTURE|PREG_PATTERN_ORDER, -10)); //finds any digit that's not 4 10 digits from the end(1 mat…
16 var_dump(preg_match_all('/\d{2}$/', $string, $match4)); //tries to find 2 digits at the end of a st…
/PHP-5.6/ext/iconv/tests/
H A Dbug53304.phpt2 Bug #53304 (quot_print_decode does not handle lower-case hex digits)
/PHP-5.6/ext/mbstring/tests/
H A Dmb_ereg_variation4.phpt23 //contains japanese characters, ASCII digits and different, UTF-8 encoded digits
/PHP-5.6/ext/standard/tests/math/
H A Dround_error.phpt6 * Description: Returns the rounded value of val to specified precision (number of digits
/PHP-5.6/Zend/
H A Dzend_operators.h135 int base = 10, digits = 0, dp_or_e = 0; local
175 …for (type = IS_LONG; !(digits >= MAX_LENGTH_OF_LONG && (dval || allow_errors == 1)); digits++, ptr…
198 if (digits >= MAX_LENGTH_OF_LONG) {
205 } else if (!(digits < SIZEOF_LONG * 2 || (digits == SIZEOF_LONG * 2 && ptr[-digits] <= '7'))) {
240 if (digits == MAX_LENGTH_OF_LONG - 1) {
241 int cmp = strcmp(&ptr[-digits], long_min_digits);
/PHP-5.6/ext/json/
H A Djson.c48 static const char digits[] = "0123456789abcdef"; variable
554 smart_str_appendc(buf, digits[(us & 0xf000) >> 12]); in json_escape_string()
555 smart_str_appendc(buf, digits[(us & 0xf00) >> 8]); in json_escape_string()
556 smart_str_appendc(buf, digits[(us & 0xf0) >> 4]); in json_escape_string()
557 smart_str_appendc(buf, digits[(us & 0xf)]); in json_escape_string()
/PHP-5.6/ext/xmlrpc/tests/
H A Dbug40576.phpt2 Bug #40576 (double values are truncated to 6 decimal digits when encoding)
H A Dbug40576_64bit.phpt2 Bug #40576 (double values are truncated to 6 decimal digits when encoding)

Completed in 39 milliseconds

123