mIRC Home    About    Download    Register    News    Help

Print Thread
maybe we can add modulo #48807 11/09/03 07:46 PM
Joined: Sep 2003
Posts: 38
S
snabbi Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2003
Posts: 38
For ppl who don't know what modulo is. It's the number which can't be devided anymore.

4 modulo 3 is 1 : 3/3 and 1 remaing
5 modulo 3 is 2 : 3/3 and 2 remaing

Now i'm using a while loop each time subtracting a number, checking if it can be subtracted again and so on.

Re: maybe we can add modulo #48808 11/09/03 08:36 PM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
$calc(N % Y) returns your modulo.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Re: maybe we can add modulo #48809 13/09/03 05:39 AM
Joined: Aug 2003
Posts: 72
V
visionz Offline
Babel fish
Offline
Babel fish
V
Joined: Aug 2003
Posts: 72
modulo is our friend!