4.5.2 Number Bases Flashcards
1
Q
What base are binary, decimal and hexadecimal numbers?
A
binary = base 2 decimal = base 10 hexadecimal = base 16
2
Q
How to convert from binary to decimal?
A
Multiply the nth least significant digit by 2^(n-1)
3
Q
How to convert from binary to hexadecimal?
A
Split binary into nibbles and convert nibbles into decimal and if it is greater than 9, represent the 2 digit numbers with a letter starting from A to F
4
Q
Why do we use hexadecimal as a shorthand for binary?
A
Makes it easier for humans to work with when binary numbers are long. Takes up less area on the output monitor when binary numbers are long