title: How does modulus work exactly?
body: <p>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.</p>
  
  <p>Then again, working with pure variables, dividend - ( dividend / divisor ) * divisor = dividend - dividend = 0 </p>
  
  <p>What am I doing wrong here?
  (Also, the formula is from a native from JASS, the language used in warcraft 3 games)</p>