I am having trouble understanding the MOD Operator %. When I look up videos, the descriptions do not match what is BRIEFLY said in Unit 7 Lesson 2 Level 2; example:
// the MOD operator “%” - divides two numbers and returns the remainder
// in this case - if a number divided by two has a remainder of zero, it’s an even number
A. (5%2) according to code.org is 2 with a remainder of 1
B. If we divide 5 by 2, the result is 2.5 (so I am confused by statement in A)
A. (2%3) according to code.org is 2
B. If we divide 2 by 3, the result is .6666666667 (so I am confused by statement in A)
So I am totally confused. Is there a video somewhere that explains the MOD operator? I watched the following video:
https://video.search.yahoo.com/search/video;_ylt=Awr46ue43DdgI3QApAL7w8QF;_ylu=c2VjA3NlYXJjaAR2dGlkA0MwMjU2;_ylc=X1MDOTY3ODEzMDcEX3IDMgRhY3RuA2NsawRjc3JjcHZpZANQYnl2dnpFd0xqS3F4YllyWURabGNnQUxOalV1TVFBQUFBQmpxSTEyBGZyA21jYWZlZQRmcjIDc2EtZ3AEZ3ByaWQDZmYzWk9GUjdSZFcxU3BmMVEzUG5MQQRuX3JzbHQDNjAEbl9zdWdnAzAEb3JpZ2luA3ZpZGVvLnNlYXJjaC55YWhvby5jb20EcG9zAzAEcHFzdHIDBHBxc3RybAMEcXN0cmwDMzIEcXVlcnkDd2hhdCUyMGlzJTIwdGhlJTIwTU9EJTIwT3BlcmF0b3IEdF9zdG1wAzE2MTQyNzM2NzA-?p=what+is+the+MOD+Operator&ei=UTF-8&fr2=p%3As%2Cv%3Av%2Cm%3Asa&fr=mcafee#action=view&id=5&vid=c872cf47d15bb82511d04994b3c3c4ce