WebDeveloperMike Posted February 11, 2012 Report Share Posted February 11, 2012 Hi everybody, I would like to show a total dollar amount to customers with 2 decimal places, my php code is rendering things like this: $19.4 when I want it to show something like this: $19.40 - so basically just need to know how to extend it to 2 decimal places. Its probably pretty simple but i have been unsuccessful in my findings! Thanks! Mike Quote Link to comment Share on other sites More sharing options...
falkencreative Posted February 11, 2012 Report Share Posted February 11, 2012 This may be helpful: http://php.net/manual/en/function.number-format.php 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.
Note: Your post will require moderator approval before it will be visible.