Home
About
Download
Register
News
Help
Register
Log In
Forums
Bug Reports
$not()
Forums
Active Threads
Search
Who's Online
Help
Print Thread
$not()
#
58056
28/10/03
04:00 AM
C
cyberjag
cyberjag
C
Unless I'm wrong, the NOT of 0 is supposed to be 1 ...
//echo 0 $not(0)
returns
4294967295
$isbit seems to be off, too.
Copy Link to Clipboard
Re: $not()
#
58057
28/10/03
07:13 AM
Q
Quietust
Quietust
Q
I believe $not is acting as a bitwise NOT, rather than a boolean NOT. If this is the case, then it is behaving correctly - ~0x00000000 == 0xFFFFFFFF, or 4294967295.
Copy Link to Clipboard
Re: $not()
#
58058
28/10/03
01:27 PM
Joined:
Feb 2003
Posts: 2,737
Raccoon
Hoopy frood
Raccoon
Hoopy frood
Joined:
Feb 2003
Posts: 2,737
And $isbit works fine here.
$base(42,10,2) == 101010
10101
0
: $isbit(42,1) == 0
1010
1
0 : $isbit(42,2) == 1
101
0
10 : $isbit(42,3) == 0
... etc ...
- Raccoon
Well. At least I won lunch.
Good philosophy, see good in bad, I like!
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
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage