I know what modulus (%) does, it gives you the remainder. But how does it do that? I saw that it uses the formula: modulus = dividend - (dividend / divisor) * divisor 10%3 should give you 1 (10 being the dividend and 3 being the divisor) the forumla gives: 10-(10/3)*3 = 10-10 = 0 which is obviously wrong.
Then again, working with pure variables, dividend - ( dividend / divisor ) * divisor = dividend - dividend = 0
What am I doing wrong here? (Also, the formula is from a native from JASS, the language used in warcraft 3 games)