Home
last modified time | relevance | path

Searched refs:decimal (Results 1 – 25 of 99) sorted by relevance

1234

/php-src/ext/standard/tests/math/
H A Dnumber_format_decimals.phpt38 foreach ($decimals as $decimal) {
39 echo '... with decimal places of ' . $decimal . ': ';
47 ... with decimal places of 0: string(1) "2"
48 ... with decimal places of 1: string(3) "1.5"
53 ... with decimal places of -1: string(1) "0"
54 ... with decimal places of -2: string(1) "0"
55 ... with decimal places of -3: string(1) "0"
56 ... with decimal places of -4: string(1) "0"
57 ... with decimal places of -5: string(1) "0"
58 ... with decimal places of %i: string(1) "0"
[all …]
H A Dbase_convert_variation3.phpt5 echo 'Binary to decimal:', \PHP_EOL;
7 echo 'Octal to decimal:', \PHP_EOL;
9 echo 'Hexadecimal to decimal:', \PHP_EOL;
13 Binary to decimal:
15 Octal to decimal:
17 Hexadecimal to decimal:
H A Dbase_convert_variation2.phpt5 echo 'Binary to decimal:', \PHP_EOL;
9 echo 'Octal to decimal:', \PHP_EOL;
14 echo 'Hexadecimal to decimal:', \PHP_EOL;
20 Binary to decimal:
24 Octal to decimal:
29 Hexadecimal to decimal:
H A Dnumber_format_multichar.phpt17 echo " number_format tests.....multiple character decimal point\n";
29 echo "\n number_format tests.....multiple character decimal and thousep\n";
36 number_format tests.....multiple character decimal point
62 number_format tests.....multiple character decimal and thousep
/php-src/ext/gd/tests/
H A Dimagecolorallocate_variation5.phpt2 Test imagecolorallocate() function : usage variations - passing octal and hexa-decimal values
29 // hexa-decimal integer data
30 "Hexa-decimal 0x0" => 0x0,
31 "Hexa-decimal 0xA" => 0xA,
32 "Hexa-decimal -0xA" => -0xA,
33 "Hexa-decimal 0xFF" => 0xFF,
70 --Hexa-decimal 0x0--
75 --Hexa-decimal 0xA--
80 --Hexa-decimal -0xA--
85 --Hexa-decimal 0xFF--
/php-src/ext/date/tests/
H A Dlocaltime_variation5.phpt2 Test localtime() function : usage variation - Passing hexa decimal values to timestamp.
14 'Hexa-decimal 0' => 0x0,
15 'Hexa-decimal 10' => 0xA,
16 'Hexa-decimal -10' => -0XA
29 --Hexa-decimal 0--
71 --Hexa-decimal 10--
113 --Hexa-decimal -10--
H A Dgmstrftime_variation6.phpt14 'Hour as decimal by 24-hour format' => "%H",
15 'Hour as decimal by 12-hour format' => "%I",
16 'Minute as decimal number' => "%M",
18 'Second as decimal number' => "%S",
33 --Hour as decimal by 24-hour format--
41 --Hour as decimal by 12-hour format--
49 --Minute as decimal number--
65 --Second as decimal number--
H A Dstrftime_variation6.phpt15 'Hour as decimal by 24-hour format' => "%H",
16 'Hour as decimal by 12-hour format' => "%I",
17 'Minute as decimal number' => "%M",
19 'Second as decimal number' => "%S",
34 --Hour as decimal by 24-hour format--
42 --Hour as decimal by 12-hour format--
50 --Minute as decimal number--
66 --Second as decimal number--
H A Dgmstrftime_variation7.phpt14 'Day of the month as a decimal number' => "%d",
15 'Day of the year as a decimal number' => "%j",
16 'Day of the week as a decimal number' => "%w"
31 --Day of the month as a decimal number--
39 --Day of the year as a decimal number--
47 --Day of the week as a decimal number--
H A Dstrftime_variation7.phpt15 'Day of the month as a decimal number' => "%d",
16 'Day of the year as a decimal number' => "%j",
17 'Day of the week as a decimal number' => "%w"
32 --Day of the month as a decimal number--
40 --Day of the year as a decimal number--
48 --Day of the week as a decimal number--
H A Dgmstrftime_variation5.phpt15 'Year as decimal number without a century' => "%y",
16 'Year as decimal number including the century' => "%Y",
33 --Year as decimal number without a century--
41 --Year as decimal number including the century--
H A Dstrftime_variation5.phpt14 'Year as decimal number without a century' => "%y",
15 'Year as decimal number including the century' => "%Y",
32 --Year as decimal number without a century--
40 --Year as decimal number including the century--
H A Dgmstrftime_variation17.phpt12 echo "\n-- Testing gmstrftime() function with Day of the month as decimal single digit format --\n";
21 -- Testing gmstrftime() function with Day of the month as decimal single digit format --
H A Dstrftime_variation17.phpt12 echo "\n-- Testing strftime() function with Day of the month as decimal single digit format --\n";
20 -- Testing strftime() function with Day of the month as decimal single digit format --
H A Dgmmktime_variation8.phpt26 echo "\n-- Testing gmmktime() function with supplying hexa decimal values to arguments --\n";
35 -- Testing gmmktime() function with supplying hexa decimal values to arguments --
H A Dgmstrftime_variation18.phpt18 echo "\n-- Testing gmstrftime() function with Day of the month as decimal single digit format --\n";
27 -- Testing gmstrftime() function with Day of the month as decimal single digit format --
/php-src/ext/posix/tests/
H A Dposix_isatty_manual_zpp.phpt20 'float no decimal' => 1.0,
21 'float decimal' => 5.5,
23 'string float no decimal' => "1.0",
24 'string float decimal' => "5.5",
44 float no decimal:bool(false)
45 float decimal:
49 string float no decimal:bool(false)
50 string float decimal:
H A Dposix_ttyname_manual_zpp.phpt20 'float no decimal' => 1.0,
21 'float decimal' => 5.5,
23 'string float no decimal' => "1.0",
24 'string float decimal' => "5.5",
44 float no decimal:bool(false)
45 float decimal:
49 string float no decimal:bool(false)
50 string float decimal:
/php-src/ext/filter/tests/
H A D031.phpt34 echo "\ncustom decimal:\n";
37 … var_dump(filter_var($float, FILTER_VALIDATE_FLOAT, array("options"=>array('decimal' => $dec))));
54 custom decimal:
58 filter_var(): "decimal" option must be one character long
/php-src/ext/mbstring/tests/
H A Dmb_decode_numericentity.phpt52 // Try with hex, not just decimal entities
58 // Large decimal entity, converting from non-ASCII input encoding
81 test("10 digits for decimal entity", "A", "A", [0, 0xFFFF, 0, 0xFFFF], 'ASCII');
82 test("More than 10 digits for decimal entity", "¥", "¥", [0, 0xFFFF, 0, 0…
106 test("Starting entity immediately after invalid decimal entity", "&#0A", "&#0A", [0x1, 0xFFFF, …
116 // First try invalid decimal/hex entities
121 // Now try valid decimal/hex entities
164 10 digits for decimal entity: string(13) "A" => string(1) "A" (Good)
165 More than 10 digits for decimal entity: string(14) "¥" => string(14) "¥" …
175 Starting entity immediately after decimal entity which is too long: string(18) "&#10000000000A"…
[all …]
/php-src/ext/standard/tests/array/
H A Darray_diff_uassoc_variation9.phpt11 'decimal indexed' => array(10 => 10, -17 => -17),
26 --decimal indexed--
H A Darray_intersect_key_variation4.phpt11 'decimal indexed' => array(10 => '10', '-17' => '-17'),
25 --decimal indexed--
H A Darray_diff_key_variation4.phpt11 'decimal indexed' => array(10 => '10', '-17' => '-17'),
26 --decimal indexed--
H A Darray_diff_ukey_variation6.phpt11 'decimal indexed' => array(10 => '10', '-17' => '-17'),
30 --decimal indexed--
/php-src/ext/standard/tests/network/
H A Dip2long_variation2_x64.phpt6 …All numbers supplied as ``parts'' in a `.' notation may be decimal, octal, or hexadecimal, as spec…
8 otherwise, the number is interpreted as decimal).

Completed in 28 milliseconds

1234