Home
last modified time | relevance | path

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

/php-src/ext/standard/tests/strings/
H A Dnumber_format_basic.phpt2 Test number_format() - basic function test number_format()
19 echo "\n-- number_format tests.....default --\n";
21 $res = number_format($values[$i]);
25 echo "\n-- number_format tests.....with two dp --\n";
27 $res = number_format($values[$i], 2);
33 $res = number_format($values[$i], 2, '.', ' ');
39 $res = number_format($values[$i], 2, ',' , ' ');
46 -- number_format tests.....default --
59 -- number_format tests.....with two dp --
72 -- number_format tests.....English format --
[all …]
H A Dbug29538.phpt2 Bug #29538 (number_format and problem with 0)
5 echo number_format(0.25, 2, '', ''), "\n";
6 echo number_format(1234, 2, '', ',');
H A Dbug22187.phpt2 Bug #22187 (possible crash in number_format() function)
5 var_dump(number_format(0.0001, 1));
6 var_dump(number_format(0.0001, 0));
H A Dbug39873.phpt2 Bug #39873 (number_format() breaks with locale & decimal points)
13 echo number_format($num,2);
H A Dbug54332.phpt5 echo number_format(1e300, 2006, '', ' ') . "\n";
/php-src/ext/standard/tests/math/
H A Dnumber_format_basic.phpt2 Test number_format() - basic function test number_format()
21 echo "\n number_format tests.....default\n";
23 $res = number_format($values[$i]);
27 echo "\n number_format tests.....with two dp\n";
29 $res = number_format($values[$i], 2);
39 echo "\n number_format tests.....French format\n";
52 number_format tests.....default
69 number_format tests.....with two dp
86 number_format tests.....English format
103 number_format tests.....French format
[all …]
H A Dbug28228.phpt2 Bug #28228 (number_format() does not allow empty decimal separator)
5 echo number_format(1234.5678, 4, '', '') . "\n";
6 echo number_format(1234.5678, 4, NULL, ',') . "\n";
7 echo number_format(1234.5678, 4, 0, ',') . "\n";
8 echo number_format(1234.5678, 4);
H A Dnumber_format_multichar.phpt2 Test number_format() - multiple character separator support
17 echo " number_format tests.....multiple character decimal point\n";
19 $res = number_format($values[$i], 2, '·', ' ');
23 echo "\n number_format tests.....multiple character thousand separator\n";
25 $res = number_format($values[$i], 2, '.' , ' ');
29 echo "\n number_format tests.....multiple character decimal and thousep\n";
31 $res = number_format($values[$i], 2, '·' , ' ');
36 number_format tests.....multiple character decimal point
49 number_format tests.....multiple character thousand separator
62 number_format tests.....multiple character decimal and thousep
H A Dbug25694.phpt2 Bug #25694 (round() and number_format() inconsistency)
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";
18 echo "number format 4.025 = " . number_format(4.025, 2) . "\n\n";
H A Dnumber_format_negative_zero.phpt2 Prevent number_format from returning negative zero
9 var_dump(number_format($number, 2));
10 var_dump(number_format(-0.01, 2));
H A Dnumber_format_with_null_args.phpt2 number_format should use default values when passed null
8 var_dump(number_format($number, 2, null, 'T'));
9 var_dump(number_format($number, 2, 'F', null));
H A Dbug62112.phpt2 Bug #62112: number_format() is not binary safe
5 var_dump(number_format(2.5, 2, "\0", "'"));
H A Dbug21523.phpt2 Bug #21523 (number_format tries to allocate negative amount of memory)
7 var_dump(number_format(-2000, 2768));
H A Dnumber_format_with_3_args.phpt2 number_format should use default thousands seperator when 3 arguments are used
8 var_dump(number_format($number, 2, 'F'));
H A Dnumber_format_basiclong_64bit.phpt2 Test number_format function : 64bit long tests
41 var_dump(number_format($number, $precision));
H A Dnumber_format_decimals.phpt2 Test number_format() - test function with different decimal places
40 var_dump(number_format($value, $decimal));
/php-src/ext/standard/tests/general_functions/
H A Dbug27678.phpt2 Bug #27678 (number_format() crashes with large numbers)
6 number_format(1e80, 0, '', ' ');
7 number_format(1e300, 0, '', ' ');
8 number_format(1e320, 0, '', ' ');
9 $num = number_format(1e1000, 0, '', ' ');
/php-src/ext/mysqli/tests/
H A Dmysqli_stmt_bind_result_format.phpt167 $expected[$k] = number_format(round($v), 0, '.', ',');
172 $expected[$k] = number_format(round($v), 0, '.', ',');
177 $expected[$k] = number_format(round($v), 0, '.', ',');
182 $expected[$k] = number_format(round($v), 0, '.', ',');
187 $expected[$k] = number_format(round($v), 0, '.', ',');
192 $expected[$k] = number_format(round($v), 0, '.', ',');
197 $expected[$k] = number_format(round($v), 0, '.', ',');
202 $expected[$k] = number_format(round($v), 0, '.', ',');
H A Dbug42378.phpt162 $expected[$k] = number_format(round($v), 0, '.', ',');
167 $expected[$k] = number_format(round($v), 0, '.', ',');
172 $expected[$k] = number_format(round($v), 0, '.', ',');
177 $expected[$k] = number_format(round($v), 0, '.', ',');
/php-src/Zend/
H A Dmicro_bench.php261 $num = number_format($last_time,3);
266 $num2 = number_format($last_time - $overhead,3);
278 $num = number_format($total,3);
H A Dbench.php366 $num = number_format($end-$start,3);
379 $num = number_format($total,3);
/php-src/
H A DNEWS213 . Cast large floats that are within int range to int in number_format so
/php-src/ext/standard/
H A Dmath.c1306 PHP_FUNCTION(number_format) in PHP_FUNCTION() argument
H A Dbasic_functions.stub.php3265 function number_format(float $num, int $decimals = 0, ?string $decimal_separator = ".", ?string $th…
H A Dbasic_functions_arginfo.h2789 ZEND_FUNCTION(number_format);

Completed in 51 milliseconds