Binary numbers
Base conversion
- Binary: 10011110001
- Decimal: (210+27+26+25+24+20)10 = 1265
- Octal: 10 | 011 | 110 | 001 = 23618
- Hex: 100 | 1111 | 0001 = 4F116
Twos complement
- Negation: Bitwise complement + one
- msb is the sign digit
- 0 ? positive
- 1 ? negative
- Complementing twice restores a number