Hello,
I need to change the format of the numbers on a page.
for example if the result of a calculation is 3.9 I need to show it as 03.90
23.1 ---> 23.10
0.08 ---> 00.08
and so on.
Any kind of help is much appreciated
I need to change the format of the numbers on a page.
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
look into these...
Code: Select all
ini_set('precision', 2) // http://php.net/manual/en/ini.core.php#ini.precision
number_format()
money_format()
round()