English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-07-21 21:24:37 · 3 answers · asked by Anitha P 1 in Science & Mathematics Mathematics

3 answers

. What, is there some trick?
647 in BCD is 0110 0100 0111 .
497 in BCD is 0100 1001 0111 .
1144 in BCD is 0001 0001 0100 0100 .
......... according to >> http://en.wikipedia.org/wiki/Binary-coded_decimal << . .

2007-07-21 21:40:00 · answer #1 · answered by jim bo 6 · 0 0

0110 0100 0111
0100 1001 0111
Taking them a "digit" at a time,
0111
0111
-------
1110 which is greater than 1001, so add
0110
-------
0100 with carry (1 0100) (14)

0100
0001
-------
0101
1001
-------
1110 ( > 1010)
0110
0100 with carry (1 0100 0100) (144)

0001
0110
-------
0111
0100
-------
1011 ( > 1010)
0110
-------
0001 with carry (1 0001 0100 0100) (1144)

Why add 6? It's the BCD "negative" of 10:
NOT (1010) + 1 = 0101 + 1 = 0110

2007-07-21 21:57:56 · answer #2 · answered by Helmut 7 · 0 0

Sorry, kid. That's just about understanding how the various number systems work. We can't help you with that...

2007-07-21 21:53:04 · answer #3 · answered by tgypoi 5 · 0 2

fedest.com, questions and answers