Hi All,
Having trouble understanding this. The way I get it is it is the result of dividing two numbers, multiplying the result by itself and then taking the answer and subtracting it from the initial amount?
Hi All,
Having trouble understanding this. The way I get it is it is the result of dividing two numbers, multiplying the result by itself and then taking the answer and subtracting it from the initial amount?
I think the example they gave was slightly confusing.
Just think of it as regular division in math, if you divide 5 by 2, what will be left over? 1.
So you would just set var remainder = 11 % 3;