mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 2
Z
ZnarreZ Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
Z
Joined: Jul 2006
Posts: 2
In Visual Basic, we have a modulus function to check the modulus "between" two numbers, example; 13 mod 10 which is 3

I think a prefix similar to this could fit very well: //echo -ae $mod(13,10)

-
3
-

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Modulus is already available as the % operator in $calc().

ie.
Code:
//echo -ae $calc(13 % 10)


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard