Binary, Octal and Hexidecimal numbers
Computers can input and output decimal numbers but they convert them to internal binary representation.
Binary is good for computers, hard for us to read
- Use numbers easily computed from binary
Binary numbers use only two different digits: {0,1}
- Example: 120010 = 00000100101100002
Octal numbers use 8 digits: {0 - 7}
Hexidecimal numbers use 16 digits: {0-9, A-F}
- Example: 120010 = 04B016 = 0x04B0
- does not distinguish between upper and lower case