unemployment Posted January 9, 2011 Share Posted January 9, 2011 how do I set money format to NO decimal places? echo money_format('%(#10n', $reQ['capitalrequested']); Link to comment https://forums.phpfreaks.com/topic/223884-money_format/ Share on other sites More sharing options...
litebearer Posted January 9, 2011 Share Posted January 9, 2011 http://php.net/manual/en/function.money-format.php .p A period followed by the number of digits (p) after the decimal character. If the value of p is 0 (zero), the decimal character and the digits to its right will be omitted. If no right precision is included, the default will dictated by the current local in use. The amount being formatted is rounded to the specified number of digits prior to formatting. Link to comment https://forums.phpfreaks.com/topic/223884-money_format/#findComment-1157127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.