105 Flashcards
What is the decimal number system?
> Base 10 system
> Maximum number value that can be stored goes up by the equation 10^n - 1
What is the binary number system?
> Base 2 system
> The max value that can be stored goes up by the equation 2^n - 1
How are binary numbers grouped?
> In groups of 4
> Leading 0’s are added
What is a 4 bit group called?
A nibble
What is an 8 bit group called?
Byte
What is the hexadecimal number system?
> Base 16 system
Symbols 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
A-F represents 10-15
The max number that can be stored goes by the equation: 16^n - 1
Why is hexadecimal useful when compared to binary?
Each nibble can be represented by a single hexadecimal digit
How are hexadecimal often notated?
> This a 0x at the front
How are decimal numbers converted to binary?
> Construct the decimal number by summing powers of 2
> 97 = (2^6) + (2^5) + (2^0)
How are binary numbers converted to hexadecimal?
Split the binary number into nibbles and convert each nibble into a corresponding hexadecimal number
How are hexadecimal numbers converted to binary?
Convert each hexadecimal digit into the equivalent nibble
How are decimal number converted to hexadecimal?
> Construct the decimal number by summing multiples of powers of 16 > 3740 = 14(16^2) + 9(2^1) + 12(2^0) = 0xE9C # 3740/16^2 = 14 remainder 156 # 156/16^1 = 9 remainder 12 # 12/16^0 = 12 # so 0xE9C
What is a signed number?
> A way of writing negative numbers in binary
Positive integers are unsigned integers
Negative integers are signed integers
What are the 3 ways of displaying negative numbers?
> Sign-magnitude format
1’s Complement format
2’s Complement format
What is sign-magnitude format?
> Most significant bit is used to represent the sign
0 represents positive numbers
1 represents negative numbers
The remaining bits represent the number