I could use an explanation of MODULUS

ساخت وبلاگ
I have read a few definitions, and seen many examples.
Part of them do make sense, but not completely.
So far the best definition I've seen is this one from developer.mozilla.org
Quote:

"The remainder operator returns the remainder left over when one operand is divided by a second operand. It always takes the sign of the dividend, not the divisor. It uses a built-in modulo function to produce the result, which is the integer remainder of dividing var1 by var2 — for example — var1 modulo var2"
...returns the remainder left over... (of a division)

What "remainder left over" ?
How can there be such thing on the first place?
Maybe I'm not looking at it from the right angle.

I was hoping someone could offer a different definition/approach.

Thanks in advance guys
CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 191 تاريخ : شنبه 30 دی 1396 ساعت: 3:29