- #1
Duderonimous
- 63
- 1
Homework Statement
Hello,
Express the following number in BCD using 6 digits:
(99 7126)base10
Homework Equations
Algorithm for changing (99 7126)base10→(N1)base8→(N2)base2
BCD table:
Decimal BCD
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
The Attempt at a Solution
[/B]
(99 7126)base10→(N1)base8
997126/8=124640R6→d0
124640/8=15580R0→d1
15580/8=1947R4→d2
1947/8=243R3→d3
243/8=30R3→d4
30/8=3R6→d5
3/8=0R3→d6
N1=3633406
(3633406)base8→(N2)base2
N2= 011 110 011 011 100 000 110
In retorspect I realize that the above method is pointless.
I could directly convert the above number from decimal to BCD
but where does the "six-digits" factor. I would have much more then 6 digits when I convert that big number to BCD. Please help.