LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon May 19, 2003 6:09 pm |
These involve binary numbers, where each digit is known as a bit.
%bitand applies the AND test to each bit of two numbers. If the bit is 1 in both numbers, it will be 1 in the result. Otherwise, it will be 0.
%bitor applies the OR test to each bit of two numbers. If the bit is 1 in either number, it will be 1 in the result. Otherwise, it will be 0.
%bitxor applies the XOR test to each bit of two numbers. If the bit is 1 in one number and 0 in the other, it will be 1 in the result. Otherwise, it will be 0.
%bitnot applies the NOT test to each bit of one number. If the bit is 1, it will be 0 in the result. Otherwise, it will be 1.
LightBulb
Advanced Member |
|