The fact that some teacher (and books!) would rather confuse that help you is shocking. I can't believe I spent an entire semester avoiding what could have been explained to me using a CLOCK!
the hero has come (me); you can easily find the remainder by "x-(x/y)*y" where x%y but be aware that the result of x/y is integer (without fractions) and do NOT round it just remove the fraction
x % y = x - [ (x / y) * y ] The operation under ( ) first ( If fractions occur here , remove fractional part.. ), Then operation under [ ] Then subtraction.
why this was so easily explained in youtube, but the math in my Scripting and Programming shows it differently. Thank you so much for an easily explained solution. Saved me sweating hours brain hurt....
This video was awesome my exam was yesterday and I opened the book like 1 day before after I saw this video I learned this method keep it up😍😍😍😍👌👌👌👏🙌🙌🙌👏🙌
or , a shortcut perhaps. the modulo operation returns the remainder of the division , 14 divided by 12 would be 1 and then the remainder is 2. so the modulo is 2. 👀👀
@@laviniadiana4270 No the modulus is 2 not 1..I explain to you it's like binary numbers if you know...if you start in 2%5 is 2 and so forth..if you solve 2%2 is 0 and if you drop that number in the right side to 2%1 it's same answer 0 modulus..it's like binary..hard to explain but I know how
when you divide 14/12, 12 only goes in to 14 once. Ex: 12x2 = 24 (too high), 12x1 = 12, which goes into 14 once, leaving a remainder of 2. Like subtraction. 14-12 = 2, or 14=12 -> 14/12 = 12/12 = 1, 12/12 cancels out 14/12 is left, since you cant divide 14/12 without a decimal, you subtract 14 - 12 = 2. The remainder is 2 there is no decimal in the answer in modulus.
Because if you’re going by modulo 2, then it’s a clock with two points. It would be straight up and straight down. 0 and 2 share the top, 1 occupies the bottom. Starting from the top we go down, that’s one. We go back up, that’s two. Now finally to the bottom, that’s three. The bottom spot is 1 on the clock.
Largest number on the clock should be your larges number. 10 modulus 3 you only have 10 digits 0 through 9. Then you can just multiply or divide. 3 goes into 10 only 3 times. With 1 left over. Your answer is 1. Another good clock demo on youtube th-cam.com/video/-zEcHLdABfo/w-d-xo.html She does a good job showing - explaining congruents in modulus.
Just did it using the clock, it's 3. You need to label the clock from zero to (modulus-1) and then count starting on the clocks zero point but you should start counting in your head from number 1.
I think because you go backwards on the clock one unit but since you start counting the values from 0 in the direction of an actual clock then you get 59
so i was told i could use this method to increase a value every 1000 of another value for example i was told to try this: strength.Changed:Connect(function() if strength.Value and health.Value and stamina.Value % 1000 == 0 then -- add points to value end end)
The fact that some teacher (and books!) would rather confuse that help you is shocking. I can't believe I spent an entire semester avoiding what could have been explained to me using a CLOCK!
same lmao
same lmao
I swear teachers and professors dont teach us effectively lol
what a neat effect. this video was way ahead of its time
why isn't this taught everywhere?! i've been struggling with understanding this for so long.. thank you
This video saved me and my friend 20 more minutes of contemplation. Mruah haha
How are you and your friend after 6 years?
@꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄ ꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄𒐪꧄ asking the real questions here.
@@kba Wow
WE NEED TO KNOW HOW ARE YOU AND YOUR FRIEND AFTER 7 YEARS GODDAMN IT !
I wanna know how you and your friend are after 9 years
This is so easy to understand. Thank you!
had 0 idea what this was figured it out before i even finished the video thanks!
the hero has come (me);
you can easily find the remainder by "x-(x/y)*y" where x%y
but be aware that the result of x/y is integer (without fractions) and do NOT round it just remove the fraction
Thank you!
x % y = x - [ (x / y) * y ]
The operation under ( ) first ( If fractions occur here , remove fractional part.. ),
Then operation under [ ]
Then subtraction.
Instant. So fast, so effective. Thanks for the video 🙏
why this was so easily explained in youtube, but the math in my Scripting and Programming shows it differently. Thank you so much for an easily explained solution. Saved me sweating hours brain hurt....
This video was awesome my exam was yesterday and I opened the book like 1 day before after I saw this video I learned this method keep it up😍😍😍😍👌👌👌👏🙌🙌🙌👏🙌
Ty Really much.I watched someones clock tutorial in lua and he was using modulus.I was really confused and this helped me alot
Thank you so much sir. You are providing knowledge to those who need it most.
Absolute legend this guy 🙏🏾🙏🏾🙏🏾🙏🏾
This guy can explain this to a 5 year old, and they will understand. Thanks
Wt about 876%56 how will u calculate this one
how can I show 8 % 4 on a clock. I'm getting 8, but I know I'm supposed to get 0. Does the clock method work for all numbers?
Hello,
I've tried 8%4 on python, and the answer is indeed 0!, ¿Perhaps the problem is elsewhere in the code?
How about the opposite 12 % 14
YOOOOOOOOOOOOOOOOOOOOOOOOO IT MAKES SOOOO MUCH SENSE NOOWWWWWWWW
wtf a clock metaphor is insane!
damn hours and hours of reading stuff simplify in 1 minute
or , a shortcut perhaps. the modulo operation returns the remainder of the division , 14 divided by 12 would be 1 and then the remainder is 2. so the modulo is 2. 👀👀
You use: 14%12
I use: 14-12
Both equal 2
Easy
And for 2%5 how do you make ? 2-5 = -3 but modulo is 1
@@laviniadiana4270 No the modulus is 2 not 1..I explain to you it's like binary numbers if you know...if you start in 2%5 is 2 and so forth..if you solve 2%2 is 0 and if you drop that number in the right side to 2%1 it's same answer 0 modulus..it's like binary..hard to explain but I know how
Thank you for explaining so simply
well yeah thats easy for small numbers, but what about doing 97 modulo 11?
Thx u. Lol finally i understood how modulo works!! :)
i cant concentrate on what hes saying cause this effect is way to cool
Thanks! it helped me so much. Do you mind if I ask you what you use to make your digital writing onthis video?
ok cool but why is 5%6 5?? it's a remainder of 1??
5/6 is 0 with remainder 5
@@yeyetaut1707 Ah thanks! Don't know how I didn't see this!
Thank you man ❤
clever way to think about it
What is 15%10?
Great explanation!!!
wtf i had never imagined this was so easy
im sorry but did he say 14 divided by 12 = 2 ? how does that work?
when you divide 14/12, 12 only goes in to 14 once. Ex: 12x2 = 24 (too high), 12x1 = 12, which goes into 14 once, leaving a remainder of 2. Like subtraction. 14-12 = 2, or 14=12 -> 14/12 = 12/12 = 1, 12/12 cancels out 14/12 is left, since you cant divide 14/12 without a decimal, you subtract 14 - 12 = 2. The remainder is 2 there is no decimal in the answer in modulus.
what about 3%2, its one, but if we count on clock its 3???
Because if you’re going by modulo 2, then it’s a clock with two points. It would be straight up and straight down. 0 and 2 share the top, 1 occupies the bottom. Starting from the top we go down, that’s one. We go back up, that’s two. Now finally to the bottom, that’s three. The bottom spot is 1 on the clock.
What about 60%80
what about 15%3 ?? 4%6? visualization please
0,1,2
count them until 15
0,1,2,3,4,5
count them until 4
braaah this guy is in 2036
How is 2 mod 10 = 2
and 2 mod 11 = 2
thank you so much "penser c'est schématiser" ;)
Thank you very much.
for 300%60
i know for small numbers but cant figure it for big numbers help needed
try 30%6 it's exactly the same thing
Largest number on the clock should be your larges number. 10 modulus 3 you only have 10 digits 0 through 9. Then you can just multiply or divide. 3 goes into 10 only 3 times. With 1 left over. Your answer is 1. Another good clock demo on youtube
th-cam.com/video/-zEcHLdABfo/w-d-xo.html
She does a good job showing - explaining congruents in modulus.
Thanks a lot 🙏 😁👌😁👌😁🙏
THANK YOU SO MUCH!
what about 3%5 = ?
is it 2?
It's 3. It still works with the clock metaphor because it lands on 3. It's the same thing as it would be for 3 % 10
if the first integer before the modulo is less than the integer after the modulo the result is just the first number
it doesn't work : 33%5 is equal 3 but in this clock trick it's 4
Just did it using the clock, it's 3.
You need to label the clock from zero to (modulus-1) and then count starting on the clocks zero point but you should start counting in your head from number 1.
Thank You!
why is -1 % 60 = 59?
I think because you go backwards on the clock one unit but since you start counting the values from 0 in the direction of an actual clock then you get 59
6 % 5 = 1
But clock trick doesn't work here.. 😶
Thank you so muchhh
Woww thank you so much
Thanks bro
Thanks man
quick and simple
Thank you soooo muchh
No need 0...start in 1...
Thx
whatt ??
ty
Good video
Waaa
aweful explanation. now that 30 is not in the clock what now
so i was told i could use this method to increase a value every 1000 of another value
for example i was told to try this:
strength.Changed:Connect(function()
if strength.Value and health.Value and stamina.Value % 1000 == 0 then
-- add points to value
end
end)
but i want to make it where everytime these three values increase by 1000, another value increases
bruh is this for roblox