Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Bitwise NOT Operator for Sage?

0b1000 & 0b1001 (AND) 0b1000 | 0b1001 (OR) 0b1000 ^^ 0b1001 (XOR)

All of these work as bitwise operators on the command line -- but how do I do bitwise NOT?