Home
About
Download
Register
News
Help
Register
Log In
Forums
Feature Suggestions
How about $modulus function?
Forums
Active Threads
Search
Who's Online
Help
Print Thread
How about $modulus function?
#
153099
11/07/06
08:47 AM
Joined:
Jul 2006
Posts: 2
Z
ZnarreZ
OP
Bowl of petunias
OP
ZnarreZ
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
-
Copy Link to Clipboard
Re: How about $modulus function?
#
153100
11/07/06
11:12 AM
Joined:
Dec 2002
Posts: 2,962
Norwich, UK
S
starbucks_mafia
Hoopy frood
starbucks_mafia
Hoopy frood
S
Joined:
Dec 2002
Posts: 2,962
Norwich, UK
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.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage