Concept Framework 2.0 documentation | Contents | Index |
Name | Version | Deprecated |
number_format | version 1.0 | no |
string number_format(number number, number decimals, string dec_point, string thousands_sep) |
number | the number to format |
decimals | the number of decimals |
dec_point | the decimal point character to use |
thousands_sep | the thousands separator |
Format number with decimals decimals, dec_point instead of a dot before the decimals and thousands_sep instead of a comma (",") between every group of thousands.
|
var number=1234.5678; echo number_format(number, 2, '.', ','); // 1,234.57 |
Documented by Simona Gabriela Plesuvu, generation time: Fri Jan 21 18:06:19 2011 GMT | (c)2011 RadGs Software |