/php-src/ext/intl/tests/ |
H A D | msgfmt_get_set_pattern.phpt | 16 $fmt = ut_msgfmt_create( "en_US", "{0,number} monkeys on {1,number} trees" ); 23 $pattern = "{0,number} trees hosting {1,number} monkeys"; 38 $res = ut_msgfmt_set_pattern($fmt, "{0,number} trees hosting {1,number monkeys"); 51 Default pattern: '{0,number} monkeys on {1,number} trees' 53 New pattern: '{0,number} trees hosting {1,number} monkeys' 55 …number} trees hosting {1,number} monkeys{0,number} trees hosting {1,number} monkeys{0,number} tree…
|
H A D | msgfmt_format_simple_types_numeric_strings.phpt | 16 number {b,number} 17 number integer {c,number,integer} 18 number currency {d,number,currency} 19 number percent {e,number,percent} 45 number 1,336,317,965.5 46 number integer 1,336,317,965 47 number currency $1,336,317,965.50 48 number percent 133,631,796,550%
|
H A D | msgfmt_format_simple_types_numeric_strings_icu72-1.phpt | 16 number {b,number} 17 number integer {c,number,integer} 18 number currency {d,number,currency} 19 number percent {e,number,percent} 45 number 1,336,317,965.5 46 number integer 1,336,317,965 47 number currency $1,336,317,965.50 48 number percent 133,631,796,550%
|
H A D | msgfmt_parse.phpt | 9 * Format a number using misc locales/patterns. 16 …'en_US' => "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tre… 17 …'ru_UA' => "{0,number,integer} мавп на {1,number,integer} деревах це {2,number} мавпи на кожному д… 18 … 'de' => "{0,number,integer} Affen über {1,number,integer} Bäume um {2,number} Affen pro Baum", 19 …'en_UK' => "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tre… 21 'fr' => 'C\'est {0,number,integer}',
|
H A D | msgfmt_format.phpt | 9 * Format a number using misc locales/patterns. 16 …'en_US' => "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tre… 17 …'ru_UA' => "{0,number,integer} мавп на {1,number,integer} деревах це {2,number} мавпи на кожному д… 18 … 'de' => "{0,number,integer} Affen über {1,number,integer} Bäume um {2,number} Affen pro Baum", 19 …'en_UK' => "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tre…
|
H A D | formatter_clone.phpt | 15 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n"; 22 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n"; 23 $res_str .= "Formatted(clone) number: " . ut_nfmt_format( $fmt_clone, $test_value ) . "\n"; 28 Formatted number: 12345.123456 29 Formatted number: 12345.1 30 Formatted(clone) number: 12345.123456
|
H A D | formatter_get_set_symbol2.phpt | 71 // Format the number using the new value. 72 $s = ut_nfmt_format( $fmt, $number ); 105 A number formatted with the new symbol: 12,345.123 115 A number formatted with the new symbol: 12,345.123 120 A number formatted with the new symbol: 12,345.123 140 A number formatted with the new symbol: $12,345.12 155 A number formatted with the new symbol: 12,345.123 160 A number formatted with the new symbol: 12,345.123 165 A number formatted with the new symbol: 12,345.123 170 A number formatted with the new symbol: 12,345.123 [all …]
|
H A D | formatter_get_set_text_attribute_var2.phpt | 85 Formatting number with default value: 12,345.123 87 Formatting number with new value: _+_12,345.123 91 Formatting number with default value: 12,345.123 93 Formatting number with new value: 12,345.123_+_ 97 Formatting number with default value: -12,345.123 99 Formatting number with new value: _-_12,345.123 103 Formatting number with default value: -12,345.123 105 Formatting number with new value: -12,345.123_-_ 109 Formatting number with default value: 12,345.123 111 Formatting number with new value: ^^^^^^^^^^^12,345.123 [all …]
|
/php-src/tests/lang/operators/ |
H A D | bitwiseShiftLeft_basiclong_64bit.phpt | 54 Exception: Bit shift by negative number 62 Exception: Bit shift by negative number 72 Exception: Bit shift by negative number 80 Exception: Bit shift by negative number 90 Exception: Bit shift by negative number 98 Exception: Bit shift by negative number 108 Exception: Bit shift by negative number 116 Exception: Bit shift by negative number 126 Exception: Bit shift by negative number 134 Exception: Bit shift by negative number [all …]
|
H A D | bitwiseShiftRight_basiclong_64bit.phpt | 54 Exception: Bit shift by negative number 62 Exception: Bit shift by negative number 72 Exception: Bit shift by negative number 80 Exception: Bit shift by negative number 90 Exception: Bit shift by negative number 98 Exception: Bit shift by negative number 108 Exception: Bit shift by negative number 116 Exception: Bit shift by negative number 126 Exception: Bit shift by negative number 134 Exception: Bit shift by negative number [all …]
|
/php-src/ext/standard/tests/math/ |
H A D | bug25694.phpt | 8 echo "number format 0.045 = " . number_format(0.045, 2) . "\n\n"; 10 echo "number format 0.055 = " . number_format(0.055, 2) . "\n\n"; 12 echo "number format 5.045 = " . number_format(5.045, 2) . "\n\n"; 14 echo "number format 5.055 = " . number_format(5.055, 2) . "\n\n"; 16 echo "number format 3.025 = " . number_format(3.025, 2) . "\n\n"; 22 number format 0.045 = 0.05 25 number format 0.055 = 0.06 28 number format 5.045 = 5.05 31 number format 5.055 = 5.06 34 number format 3.025 = 3.03 [all …]
|
H A D | round_modes_ceiling_and_floor.phpt | 24 foreach($numbers as $number) { 25 var_dump(ceil($number) === round($number, 0, RoundingMode::PositiveInfinity)); 30 foreach($numbers as $number) { 31 var_dump(floor($number) === round($number, 0, RoundingMode::NegativeInfinity));
|
H A D | number_format_negative_zero.phpt | 6 $number = -1.15E-15; 8 var_dump($number); 9 var_dump(number_format($number, 2));
|
H A D | number_format_with_null_args.phpt | 6 $number = 2020.1415; 8 var_dump(number_format($number, 2, null, 'T')); 9 var_dump(number_format($number, 2, 'F', null));
|
H A D | round_gh12143_1.phpt | 8 ] as $number) { 15 printf("%-20s: %+.17g -> %+.17g\n", $mode, $number, round($number, 0, constant($mode)));
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | conv.c | 218 number = (*p - '0') + number * 10; in lexbor_conv_data_to_ulong() 232 return number; in lexbor_conv_data_to_ulong() 270 number = n; in lexbor_conv_data_to_long() 275 return (minus) ? -number : number; in lexbor_conv_data_to_long() 290 number = (*p - '0') + number * 10; in lexbor_conv_data_to_uint() 304 return number; in lexbor_conv_data_to_uint() 316 if(number != 0) { in lexbor_conv_dec_to_hex() 317 tmp = number; in lexbor_conv_dec_to_hex() 338 while (number != 0) { in lexbor_conv_dec_to_hex() 339 c = number % 16; in lexbor_conv_dec_to_hex() [all …]
|
H A D | conv.h | 40 lexbor_conv_dec_to_hex(uint32_t number, lxb_char_t *out, size_t length); 43 lexbor_conv_double_to_long(double number) in lexbor_conv_double_to_long() argument 45 if (number > (double) LONG_MAX) { in lexbor_conv_double_to_long() 49 if (number < (double) LONG_MIN) { in lexbor_conv_double_to_long() 53 return (long) number; in lexbor_conv_double_to_long()
|
/php-src/ext/standard/tests/serialize/ |
H A D | precision.phpt | 39 number: 0.00000000000000000e+0... OK 40 number: 2.00000000000000010e-4... OK 41 number: 2.00000000000000037e-4... OK 42 number: 2.22507385850720138e-308... OK 43 number: 2.22507385850720188e-308... OK 44 number: 1.79769313486231571e+308... OK 45 number: 1.79769313486231551e+308... OK 46 number: 4.94065645841246544e-324... OK 47 number: 9.88131291682493088e-324... OK 48 number: 3.87340857288933536e-304... OK [all …]
|
/php-src/ext/bcmath/tests/number/methods/ |
H A D | round.phpt | 21 ] as $number) { 22 $func_ret = bcround($number, 0, $mode); 23 $method_ret = (new BcMath\Number($number))->round(0, $mode); 26 var_dump($number, $mode, $func_ret, $method_ret); 35 ] as $number) { 36 $func_ret = bcround($number, 5, $mode); 37 $method_ret = (new BcMath\Number($number))->round(5, $mode); 40 var_dump($number, $mode, $func_ret, $method_ret);
|
/php-src/ext/standard/tests/array/range/ |
H A D | range_inputs_float_NAN_values.phpt | 36 range(): Argument #1 ($start) must be a finite number, NAN provided 38 range(): Argument #1 ($start) must be a finite number, NAN provided 40 range(): Argument #1 ($start) must be a finite number, NAN provided 42 range(): Argument #1 ($start) must be a finite number, NAN provided 44 range(): Argument #1 ($start) must be a finite number, NAN provided 46 range(): Argument #1 ($start) must be a finite number, NAN provided 48 range(): Argument #1 ($start) must be a finite number, NAN provided 50 range(): Argument #1 ($start) must be a finite number, NAN provided 60 range(): Argument #2 ($end) must be a finite number, NAN provided 62 range(): Argument #2 ($end) must be a finite number, NAN provided [all …]
|
/php-src/ext/intl/formatter/ |
H A D | formatter_format.c | 30 zval *number; in PHP_FUNCTION() local 39 &object, NumberFormatter_ce_ptr, &number, &type ) == FAILURE ) in PHP_FUNCTION() 48 switch(Z_TYPE_P(number)) { in PHP_FUNCTION() 62 convert_to_long(number); in PHP_FUNCTION() 63 formatted_len = unum_format(FORMATTER_OBJECT(nfo), (int32_t)Z_LVAL_P(number), in PHP_FUNCTION() 68 formatted_len = unum_format(FORMATTER_OBJECT(nfo), (int32_t)Z_LVAL_P(number), in PHP_FUNCTION() 79 int64_t value = (Z_TYPE_P(number) == IS_DOUBLE)?(int64_t)Z_DVAL_P(number):Z_LVAL_P(number); in PHP_FUNCTION() 94 convert_to_double(number); in PHP_FUNCTION() 99 …unum_formatDouble(FORMATTER_OBJECT(nfo), Z_DVAL_P(number), formatted, formatted_len, NULL, &INTL_D… in PHP_FUNCTION() 128 double number; in PHP_FUNCTION() local [all …]
|
/php-src/ext/simplexml/tests/ |
H A D | bug54973.phpt | 7 $xml = simplexml_load_string("<xml><number>9223372036854775808</number></xml>"); 9 var_dump($xml->number); 11 $int = $xml->number / 1024 / 1024 / 1024; 14 $double = (double) $xml->number / 1024 / 1024 / 1024;
|
/php-src/ext/pdo_mysql/tests/ |
H A D | bug79132.phpt | 53 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens 54 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens 66 SQLSTATE[HY093]: Invalid parameter number 67 SQLSTATE[HY093]: Invalid parameter number
|
H A D | bug41125.phpt | 89 …t::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match … 127 …t::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match … 133 …t::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match … 143 …t::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match … 157 …t::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match … 163 …t::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match …
|
/php-src/Zend/tests/attributes/ |
H A D | gh8421.phpt | 8 public int $number = 1; 43 …ctionFunction($globalClosure))->getAttributes(FunctionAttribute::class)[0]->newInstance()->number); 44 …unction($globalStaticClosure))->getAttributes(FunctionAttribute::class)[0]->newInstance()->number); 45 …reDefinedInScopeStatically()))->getAttributes(FunctionAttribute::class)[0]->newInstance()->number); 46 …reDefinedInScopeStatically()))->getAttributes(FunctionAttribute::class)[0]->newInstance()->number); 50 …->getClosureDefinedInScope()))->getAttributes(FunctionAttribute::class)[0]->newInstance()->number); 51 …taticClosureDefinedInScope()))->getAttributes(FunctionAttribute::class)[0]->newInstance()->number);
|