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']); Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.