Lines Matching refs:number_format
2 Test number_format() - basic function test number_format()
5 /* Prototype : string number_format ( float $number [, int $decimals ] )
6 …* string number_format ( float $number , int $decimals , string $dec_point , string …
11 echo "*** Testing number_format() : basic functionality ***\n";
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);
38 echo "\n-- number_format tests.....English format --\n";
40 $res = number_format($values[$i], 2, '.', ' ');
44 echo "\n-- number_format tests.....French format --\n";
46 $res = number_format($values[$i], 2, ',' , ' ');
52 *** Testing number_format() : basic functionality ***
54 -- number_format tests.....default --
68 -- number_format tests.....with two dp --
82 -- number_format tests.....English format --
96 -- number_format tests.....French format --