Professional Documents
Culture Documents
Quantitative Analysis II
Professor Bob Orr
Introduction to Numbering
Systems
– Binary Base 2
– Octal Base 8
– Hexadecimal Base 16
Binary: 11101101
Hexadecimal: 1D63A7A
000 0 20 1
001 1 21 2
010 2 22 4
011 3 23 8
100 4 24 16
101 5 25 32
110 6 26 64
111 7 27 128
(3) 1 (4) 1
+0 +1
01 10
1 0 0 0 0 1 12
© Copyright 2000 Indiana University Board of Trustees
Binary to Decimal Conversion
Binary 1 0 1 0 1 1 0 1
x x x x x x x x
Positional Values 27 26 25 24 23 22 21 20
Products 128 + 32 + 8 + 4 + 1
17310
6538
Octal Digits 6 5 3
x x x
Positional Values
82 81 80
Products 384 + 40 + 3
42710
6 5 3
Base 16 system
Uses digits 0-9 &
letters A,B,C,D,E,F
Groups of four bits
represent each
base 16 digit
33E16
Hex Digits 3 B 4 F
x x x x
Positional Values
163 162 161 160
Products 12288 +2816 + 64 +15
15,18310
5 6 A E 6
A
0101 0110 1010 1110 0110 1010
56AE6A16
2 5 5 2 7 1 5 2
010 101 101 010 111 001 101 010
255271528
1’s complement
– Switch all 0’s to 1’s and 1’s to 0’s
Binary # 10110011
1’s complement 01001100
2’s complement
– Step 1: Find 1’s complement of the number
Binary # 11000110
1’s complement 00111001
– Step 2: Add 1 to the 1’s complement
00111001
+ 00000001
00111010
110010.. …00101110010101
0 = positive
1 = negative This is your basic
Integer format
± 8-bit
23-bit fraction field
exponent