You've got lost in the logic. Your code above says:
First, check to see if percentage is the same as 85, and THEN, if it is, floor it.
Do you see how that's completely back to front?
You need to floor it first, and THEN check to see if the new value is the same as 85.
Last edited on
When I do it this way it still doesnt work
Last edited on