Bit
* binary digit (0, 1)
* smallest increment of data
Byte
* 4 bits = nibble
* 8 bits = byte
* used to represent data
Bits ordered by significance, left to right:
$
2^7\quad2^6\quad2^5\quad2^4\quad2^3\quad2^2\quad2^1\quad2^0
$
First term has largest magnitude
### Decimal to Binary
| Divide | Number | Remainder |
| ------ | ------ | --------- |
| 2 | 137 | 1 |
| 2 | 68 | 0 |
| 2 | 34 | 0 |
| 2 | 17 | 1 |
| 2 | 8 | 0 |
| 2 | 4 | 0 |
| 2 | 2 | 0 |
| | 1 | 1 |
137 = 0b1000 1001
### Hexadecimal
Base 16:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
#### Hexadecimal to Binary
0xDEADBEEF
0b1100 1101 1010 1100 1011 1110 1110 1111
#### Hexadecimal to Decimal
0xDEADBEEF
$
16^7\quad16^6\quad16^5\quad16^4\quad16^3\quad16^2\quad16^1\quad16^0
$