mIRC Home    About    Download    Register    News    Help

Print Thread
#48807 11/09/03 07:46 PM
S
snabbi
snabbi
S
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.

#48808 11/09/03 08:36 PM
Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
$calc(N % Y) returns your modulo.

#48809 13/09/03 05:39 AM
V
visionz
visionz
V
modulo is our friend!


Link Copied to Clipboard