![]() |
how to get a following zero as a numerical?
So I want to display the following zeros in a 2 precision php rounded number, but I need it as a numerical...how do I do that?
i.e. PHP Code:
|
Don't round it if you want the decimal.
PHP Code:
PHP Code:
This only effects display of $total it doesn't alter the database. This is how I do it on my site. |
A vastly easier and cleaner solution is to use the number formatting functions PHP gives you, including the formatted string functions like sprintf().
|
wow that is easier filburt. Thanks.
|
<i>edit: </i>NVM, got this one figgered out as well...was not a numerical vs. string issue...was a formatting error within the currency notation...
Thanks! |
All times are GMT. The time now is 04:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|