ASCII vs UNICODE

The issue with ASCII

The problem with 7-bit ASCII character set is that it is only able to represent 128 different characters. An 8-bit system improves this but the real solution is...

UNICODE

Data Types

Untitled

Representing negative numbers

1. Sign and magnitude

2. Two's complement

<aside> ✅ Allows for binary addition

</aside>

To write in two's complement, write the usual binary number. Then, starting at the right hand side, leave every bit up to and including the first 1 alone, but invert all the bits after this.

Adding and subtracting binary