Professional Documents
Culture Documents
1/30/12
A position's weight is rk, where k is the number of positions from the decimal point.
To the left of the decimal point, k takes values 0, 1, 2... ,
and to the right, it takes values -1,-2,...
Examples
Binary radix = 2
Binary
000
001
010
011
100
101
110
111
Octal to Binary Conversion: Expand each octal digit into the equivalent binary code.
Verify:
Binary radix = 2
Group 4 bits of binary number to obtain the corresponding hexadecimal digit. See the table below.
Pad the left of integer part and the right of fractional part as needed to make groups of 4 bits.
Binary
Code
Decimal
Value
Hex
Code
Example:
1 0 0 0 1 1 1 0 0 . 0 1 0 0 0 12 =
10
11
12
13
14
15
2nd
hex
digit
Source:http://ascii-table.com
Prefixes
Source: Slides for the Computer Organization course, Fall 07, from UC Berkely.
Binary
Code
Decimal
Value
Hex
Code
10
11
12
13
14
15
See the book for algorithms on adding, multiplying, modular arithmetic of binary integers.
1/30/12
Section 4.1, # 40