Jump to content

Number Formatting


day_tripperz

Recommended Posts

I have a page that multiplies an amount of a part by the quantity of that part, then gives a total. For example:

 

PART (costs $5.00, quantity of 3)

 

That yields a total of $15. I want to it say $15.00 and I want it to round to the hundreths place in circumstances where a part may cost $3.6554, for example.  How can I achieve this?

Link to comment
https://forums.phpfreaks.com/topic/44147-number-formatting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.