 So in the last video I introduced something called modulus modulus on a computer is This guy it's not actually the percent sign We don't even know what that does in programming what this does and just so we can get it Modulus or modulo also goes by What this does is it actually calculates out the? remainder because if we think about it once upon a time I told you guys something about integer division something like 4 divided by 8 is going to equal 0 because 4 and 8 are whole numbers and we truncate out the decimal place So what do I do that's actually where modulo can come into play what I can actually do is let's say for example I say something like my num Modulo to Now what am I saying here well what I'm doing is I'm actually saying what is 5 divided by 2 In this case, we're like oh, it's 2.5 again. I'm dealing with whole numbers So I can't do that What I can do however is I know two goes into five two times and I'm gonna do a little long division I know that they don't teach that anymore, but I'm gonna do it anyway So Two goes into five two whole times two times two now equals four and Now I just take the difference between these two it becomes one since there's nothing that I can knock down afterwards and to can't go into one in Long division terms this would be called remainder one So that's what I'm actually doing by doing my num modulo to what I actually get Is one let's take another example, let's look at another one for a second Where can we go? Yeah, we'll do it right about here. Here we are So let's say for example. I want to use two numbers. We're gonna say One hundred and three one hundred three modulo Three oh God Take a second pause the video see if you can figure this one out or Remember, we do have a giant calculator ahead of us now So put it in there see system dot out dot print line see what happens. So pause And we're back. So if we take a look at this again, I'm gonna do long division because That's how I learned it is Okay, it won't go into there, but it does go into ten three times. So we deal with nine All right. Well, that gives me a one and a three that can go in it Four times suddenly that becomes a 12 One so it becomes 34 remainder one 103 modulo three is now equal to one