Quote:
Originally Posted by Junkie
My 'Cash on Hand' at the moment displays as 42.7000000000007.
I use vBCredits as my money system and have the number of decimal places set to zero. Prior to the above display of cash on hand, it displayed an amount with one digit to the right of the decimal. Is there a way to display the cash on hand with no digits to the right of the decimal?
|
open up vbtrade.php and change
PHP Code:
$cashonhand = $vbulletin->userinfo[$moneyrow];
to
PHP Code:
$cashonhand = round($vbulletin->userinfo[$moneyrow],2);
This will only show
42.70 . you can change 2 to 0 if you wish to show 42 only.