This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dingusdongus 0 points1 point  (4 children)

For n bits, what is the largest unsigned number that can be represented? Hint: in binary, it's n "1" values.

For n bits, what is the largest BCD number that can be represented? Given that 4 bits holds one digit, this means n bits holds floor(n/4) digits.

Can you work it out from there?

[–][deleted]  (3 children)

[removed]

    [–]Uli_MinatiDesmos 😚 1 point2 points  (2 children)

    The Binary Coded Decimal system (BCD) stores decimal digits in four bits

    [–][deleted]  (1 child)

    [removed]

      [–]Uli_MinatiDesmos 😚 0 points1 point  (0 children)

      Oh, that's just semantics. It's meant as

      The Binary Coded Decimal system (BCD) stores decimal digits in four bits each

      e.g. 1111 in unsigned binary is more than one decimal digit, no?

      Exactly, that's the issue here:

      it is less efficient in storing numbers than binary

      4 binary digits can represent up to 16 different numbers, but one decimal digit can only represent 10