Help with modulo. 25%10 always rounds off to 6.

You're dealing with decimals not int. try float .