Jump to content

Number formatting


anevins

Recommended Posts

I used the format already number_format($total,4,'.',''), but this gives the wrong format if my total amount is 3.40, so the result of formatting would be 3.40.00

But this format does work if my total amount is 34000, so the result of formatting would be 34000.00

 

Link to comment
https://forums.phpfreaks.com/topic/232165-number-formatting/#findComment-1194296
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.