NathanFtw wrote:They still show up with decimals
.
Sure? I'm pretty sure, we handle every occurance with this function ....
NathanFtw wrote:It also shows the thousands separator example: (500,000) if a user has say 50 cash example: (50,00) how can i make it so that no decimals or thousand seperator is shown (,) for example a user has 50 points and another has 4950 points how can i make it so it shows up like that without decimals and the thousand's separator? Thanks
.
Try:
Code: Select all
/**
* Preformat numbers
*/
function number_format_points($num)
{
global $user;
$decimals = 2;
return number_format($num, $decimals, $user->lang['POINTS_SEPARATOR_DECIMAL'], $user->lang['POINTS_SEPARATOR_THOUSANDS']);
}
replacing with:
Code: Select all
/**
* Preformat numbers
*/
/*
function number_format_points($num)
{
global $user;
$decimals = 2;
return number_format($num, $decimals, $user->lang['POINTS_SEPARATOR_DECIMAL'], $user->lang['POINTS_SEPARATOR_THOUSANDS']);
}
*/
function number_format_points($num)
{
global $user;
return number_format($num, 0, '', '');
}
regards,
femu