I have the following code:
$convertedCredits = round($userBalance['points'] / $convertionPoints) * $convertionPrice;
echo 'points: ' . $userBalance['points'] . ' - to: ' . $convertedCredits;
Example data (I know there is no point in dividing by 9 and multiply by 9 but that data is dynamic):
(6000/9) * 9
My echo results in the following:
points: 6000 - to: 60030
Why does that result in 60030?