salvin francis wrote:(...)
Another cool feature is that the mod will always return a number from 0 to N-1 where N is the divisor.
There are three kinds of actuaries: those who can count, and those who can't.
Piet Souris wrote:Try -1 % 2.
jon ninpoja wrote:yes 1 know what mod is and that its represented by %
i just dont know why she was using 10000 ....
[Arguing with an engineer is a lot like wrestling in the mud with a pig. After a few hours, you realize that he likes it] [Learn code first? no we apply to learn programming(or also)first thanks]
jon ninpoja wrote:1234567890 % 10000
...
7890 it gave me the last four digits
but why is that?