Jump to content

number_format question for currency


jacko_162

Recommended Posts

I am looking into sotring values in the sql database as "29824478.15" for example,

 

now i use the number_format function to display as: 29,824,478

 

is it possible to get it to display as: 29.8m if its a million number and 0.29m if its less than a million for example?

Link to comment
https://forums.phpfreaks.com/topic/227583-number_format-question-for-currency/
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.