

















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































Number Systems
Number System Conversion Sum-of-Weights for converting to decimal Repeated division for converting from decimal
Binary Arithmetic Similar to Decimal Arithmetic Multiplying by a constant by shifting left Dividing by a constant by shifting right
1’s complement form
2’s complement form
Binary number 01101 (13)
1’s complement 10010
2’s complement 10011 (-13)
Addition and Subtraction with 2’s Complement
Addition and Subtraction 2’complement vs. Signed
Unsigned Positive Numbers Only (0 to 7) 3-bit
Signed Magnitude Positive & Negative Numbers (-7 to 7) 4-bit
2’s Complement Positive & Negative Numbers (-8 to 7) 4-bit
Processors can handle 64-bit unsigned binary values.
Maximum unsigned decimal number is 18.446 x 10 18
How to represent larger numbers?
How to represent very small numbers?
How to represent numbers with integer part and fraction part?
15 digit decimal number format
Sign digit 1
Exponent digits 2
Mantissa digits 12
6918.3125 = 6.9183125 x 10 3
Magnitude 69183125
Exponent 3
Normalized form 0.69183125 x 10^4
Magnitude 69183125
Exponent 4
Max Number 0.999,999,999,999 x 10^99 No negative exponent
Zero?
+/- (^) x x 0 0 0 0 0 0 0 0 0 0 0 0
Exponent 99 → ∞ Exponent 0 → 0
Exponent 99 → ∞ Exponent 0 → 0
Base 16
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
Representing Binary in compact form
1101100000110 2 = 1B06 H