LOGNOT
Syntax LOGNOT integer 
 
Explanation LOGNOT reports the bitwise logical complement of its input, replacing all 1's with 0's and all 0's with 1's. Since integers are stored in the computer as base 2 numbers 32 digits long, all the leading 0's turn into 1's.

See also LOGAND, LOGOR, and LOGXOR.
 

Examples MAKE "BASE 2 
21 
Result: 010101 
LOGNOT 21 
Result: 111111111111111111111111111101010  

TopIndex