I have this piece of php code:
$skill_amount = round(pow($rarity,1.25));
It should be noted that $rarity is derived from a query.
I am inputting values like 0,2,4,8,16,32,64 into it.
99% of the time it is working but a small amount of times my users are reporting huge values like:
13771, 77936
What could possibly be causing this?
A large or unexpected value for
$rarity.If you can inspect all possible values of $rarity, you should do that. Otherwise, you could do some basic debugging.