% the modulo noob blues
Hello good people,
I just started out learning max last week, and I love it. I've followed a few tutorials from Sam Tarakajian on YouTube and now I'm going through the included tutorials in Max 6 - so far so good - well, apart from one tiny but confusing little piece of the Max pie...
I don't understand how the % modulo object works :( Correction, I think I understand in theory, but in practice the results I get at the output just seem to be way off. For example, at the left inlet I input 6, at the right 15, so 6/15 = 0.4 and the modulo object outputs the number 6. So in this particular case, what is considered to be the remainder of that calculation? How do we get the 6 at the output?
Any help sincerely appreciated as I think I'll probably give up on Max if I can't figure this tiny thing out!
Tom
I assume I'm being a complete dunce, but maybe someone could help/explain this to me please?
think of doing long division when you were in primary school
if the teacher said "6 how many 15's ?" you'd say none with 6 left over
the 'left over' is the modulus
so, 21/15 is 1 with 6 remainder, so 21%15 is also 6... and so on
ah! I get it now, so it's short division. D'oh, of course it is because that's the the only division that deals with remainders, silly me :/
many thanks to you, good sir