The conversation between human and AI assistant.
How one can differentiate between Binary and Bcd when no is lesser than 9?
So, how can I differentiate between the two when the number is less than 9?
Well, for numbers less than 9, both Binary and BCD would use only four bits to represent each digit. However, in BCD, the four bits are assigned specific weights, unlike binary where each bit position represents a power of 2. With BCD, each decimal digit from 0 to 9 is represented by a unique four-bit binary code.