mIRC Homepage
Posted By:
cyberjag
$not()
-
28/10/03
04:00 AM
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.
Posted By:
Quietust
Re: $not()
-
28/10/03
07:13 AM
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.
Posted By:
Raccoon
Re: $not()
-
28/10/03
01:27 PM
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
©
mIRC Discussion Forums