The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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:
|
#2
|
|||
|
|||
![]()
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. |
#3
|
|||
|
|||
![]()
A vastly easier and cleaner solution is to use the number formatting functions PHP gives you, including the formatted string functions like sprintf().
|
#4
|
|||
|
|||
![]()
wow that is easier filburt. Thanks.
|
#5
|
||||
|
||||
![]()
<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! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|