Jump to content

Extending integers to 2 decimal places (displaying total price)


Recommended Posts

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!



Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...