I am confused a bit with a mod function, cause my calculator, the C % mod operator and some other calculator are all giving me different results for some numbers.
Can any1 please explain how it works. As far as i understand mod function returns the remainder after division of first number by second.
So if i divide 3/2=1.5, where the remainder is 5, shouldnt i get 5 as output? Why am i getting 1?
I know it is a pretty stupid question, but i've never worked with mod before (only heard about it), thus i need to know for sure how it works for real.