/PHP-7.0/ext/standard/tests/strings/ |
H A D | number_format_error.phpt | 2 Test number_format() - wrong params test number_format() 5 /* Prototype : string number_format ( float $number [, int $decimals ] ) 11 echo "*** Testing number_format() : error conditions ***\n"; 14 number_format(); 16 echo "\n-- Testing number_format() function with 3 arguments --\n"; 17 number_format(23,2,true); 20 number_format(23,2,true,false,36); 25 *** Testing number_format() : error conditions *** 31 -- Testing number_format() function with 3 arguments -- 33 Warning: Wrong parameter count for number_format() in %s on line %d [all …]
|
H A D | number_format_basic.phpt | 2 Test number_format() - basic function test number_format() 26 echo "\n-- number_format tests.....default --\n"; 28 $res = number_format($values[$i]); 32 echo "\n-- number_format tests.....with two dp --\n"; 34 $res = number_format($values[$i], 2); 40 $res = number_format($values[$i], 2, '.', ' '); 46 $res = number_format($values[$i], 2, ',' , ' '); 54 -- number_format tests.....default -- 68 -- number_format tests.....with two dp -- 82 -- number_format tests.....English format -- [all …]
|
H A D | bug29538.phpt | 2 Bug #29538 (number_format and problem with 0) 5 echo number_format(0.25, 2, '', ''), "\n"; 6 echo number_format(1234, 2, '', ',');
|
H A D | bug22187.phpt | 2 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 D | bug39873.phpt | 2 Bug #39873 (number_format() breaks with locale & decimal points) 13 echo number_format($num,2);
|
H A D | bug54332.phpt | 5 echo number_format(1e300, 2006, '', ' ') . "\n";
|
/PHP-7.0/ext/standard/tests/math/ |
H A D | number_format_basic.phpt | 2 Test number_format() - basic function test number_format() 18 echo "\n number_format tests.....default\n"; 20 $res = number_format($values[$i]); 24 echo "\n number_format tests.....with two dp\n"; 26 $res = number_format($values[$i], 2); 32 $res = number_format($values[$i], 2, '.', ' '); 38 $res = number_format($values[$i], 2, ',' , ' '); 43 number_format tests.....default 57 number_format tests.....with two dp 71 number_format tests.....English format [all …]
|
H A D | bug28228.phpt | 2 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 D | number_format_multichar.phpt | 2 Test number_format() - multiple character separator support 18 echo " number_format tests.....multiple character decimal point\n"; 20 $res = number_format($values[$i], 2, '·', ' '); 24 echo "\n number_format tests.....multiple character thousand separator\n"; 26 $res = number_format($values[$i], 2, '.' , ' '); 30 echo "\n number_format tests.....multiple character decimal and thousep\n"; 32 $res = number_format($values[$i], 2, '·' , ' '); 37 number_format tests.....multiple character decimal point 51 number_format tests.....multiple character thousand separator 65 number_format tests.....multiple character decimal and thousep
|
H A D | bug25694.phpt | 2 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 D | bug62112.phpt | 2 Bug #62112: number_format() is not binary safe 5 var_dump(number_format(2.5, 2, "\0", "'"));
|
H A D | bug21523.phpt | 2 Bug #21523 (number_format tries to allocate negative amount of memory) 7 var_dump(number_format(-2000, 2768));
|
/PHP-7.0/ext/standard/tests/general_functions/ |
H A D | bug27678.phpt | 2 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-7.0/ext/mysqli/tests/ |
H A D | mysqli_stmt_bind_result_format.phpt | 165 $expected[$k] = number_format(round($v), 0, '.', ','); 170 $expected[$k] = number_format(round($v), 0, '.', ','); 175 $expected[$k] = number_format(round($v), 0, '.', ','); 180 $expected[$k] = number_format(round($v), 0, '.', ','); 185 $expected[$k] = number_format(round($v), 0, '.', ','); 190 $expected[$k] = number_format(round($v), 0, '.', ','); 195 $expected[$k] = number_format(round($v), 0, '.', ','); 200 $expected[$k] = number_format(round($v), 0, '.', ',');
|
H A D | bug42378.phpt | 163 $expected[$k] = number_format(round($v), 0, '.', ','); 168 $expected[$k] = number_format(round($v), 0, '.', ','); 173 $expected[$k] = number_format(round($v), 0, '.', ','); 178 $expected[$k] = number_format(round($v), 0, '.', ',');
|
/PHP-7.0/Zend/ |
H A D | micro_bench.php | 261 $num = number_format($last_time,3); 266 $num2 = number_format($last_time - $overhead,3); 278 $num = number_format($total,3);
|
H A D | bench.php | 366 $num = number_format($end-$start,3); 379 $num = number_format($total,3);
|
/PHP-7.0/ext/standard/ |
H A D | php_math.h | 66 PHP_FUNCTION(number_format);
|
H A D | math.c | 1234 PHP_FUNCTION(number_format) in PHP_FUNCTION() argument
|
H A D | basic_functions.c | 2922 PHP_FE(number_format, arginfo_number_format)
|
/PHP-7.0/ |
H A D | run-tests.php | 2859 return number_format($JUNIT['files'][$file_name]['total'], 4);
|
H A D | NEWS | 962 . Fixed for #73240 (Write out of bounds at number_format). (Stas)
|