Exploring 8-bit BCD and Integers: How Many Can be Represented?

In summary, an 8-bit word can hold two decimal digits when represented in binary coded decimal (BCD). This means that 100 different integers can be represented in a single 8-bit word. However, BCD is considered wasteful as a byte can hold one of 256 numbers in binary form.
  • #1
hime
26
0

Homework Statement


Suppose a computer has 8-bit words. How many different integers can be represented (in decimal) in a single word if the integers are represented in binary coded decimal(BCD)?

Homework Equations



BCD= Binary Coded Decimal

The Attempt at a Solution


BCD is coded in 4 bits so 8bits/4bits =2 but I think its wrong..I do not know how to do this problem.
 
Physics news on Phys.org
  • #2
So far, so good, but you're not done. An 8-bit word can hold two decimal digits, so how many integers can be represented in two decimal digits?
 
  • #3
integers 0 to 99..so 100 integers...is this the answer?
 
  • #5
so if there are 32 bits, we have 8 decimal digits if we code the integers in BCD(4bits/integer). That means, 10^8 integers(0 to 10^8-1) can be represented in BCD with 32 bits. Is this correct?
 
  • #6
Yes. I should add that BCD is somewhat wasteful. As you have already found, a byte can hold two decimal digits in BCD form, so can represent 100 numbers. On the other hand, the eight bits in a byte can hold one of 256 numbers, either 0 through 255 for unsigned numbers, or -128 through 127 for signed numbers.
 

Related to Exploring 8-bit BCD and Integers: How Many Can be Represented?

1. What does 8 bit BCD mean?

8 bit BCD stands for 8-bit Binary Coded Decimal. It is a way of representing decimal numbers using binary code, where each decimal digit is represented by 4 bits.

2. How is 8 bit BCD different from regular binary?

Regular binary uses a base-2 numbering system, where each digit can only be a 0 or 1. 8 bit BCD uses a base-10 numbering system, where each digit can be any number between 0 and 9.

3. Why is 8 bit BCD used in computing?

8 bit BCD is used in computing because it is a more efficient way of representing decimal numbers compared to regular binary. It allows for easier conversion to and from decimal numbers, which are more commonly used by humans.

4. What is the difference between 8 bit BCD and integers?

8 bit BCD is a way of representing decimal numbers using binary code, while integers are whole numbers without decimal places. Integers can be represented using 8 bit BCD, but not all 8 bit BCD numbers are integers.

5. What are some common applications of 8 bit BCD and integers?

8 bit BCD and integers are commonly used in computer systems for representing and performing calculations with decimal numbers. They are also used in microcontrollers, digital displays, and electronic devices that require precise decimal calculations.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
9
Views
993
  • Engineering and Comp Sci Homework Help
Replies
7
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
Back
Top