Quote:
Originally Posted by Boofo
According to your second link, you are 100% right. It still doesn't look right to me, but I can't argue with it anymore. Sorry for my confusion. And here I thought was good in math in school.
Here's what I came up with using your method:
Code:
$pmpercent = vb_number_format($vbulletin->userinfo['pmtotal'] / $vbulletin->userinfo['permissions']['pmquota'] * 100, 2);
|
Now it is correct.
Also I am thinking using round function.