Converting Decimal to b-Bit Binary
Let d be decimal number, less than 2b-1
b=0
quit
d := d - 2b
Output 0 in position b
Output 1 in position b
y
y
n
n
1998 in 12-bit
d 2b
1998 2048:0
1998 - 1024:1
974 - 512:1
462 - 256:1
206 - 128:1
78 - 64:1
14 32:0
14 16:0
14 - 8:1
6 - 4:1
2 - 2:1
0 1:0
Previous slide
Next slide
Back to first slide
View graphic version