A BCD number is a binary-coded decimal. It means that each group of four bits represents a decimal digit. Since you want an example: 1234 would be encoded as:
0001 0010 0011 0100
Since 0001 in binary = 1, etc.
In practice, one nibble (half-byte, or group of 4 bits) would also need to be reserved for the sign (positive or negative).
In BCD it is 00100111 In Binary, which is what you mean, it is 101111
The decimal number 10, represented in BCD is 0001 0000. If, instead, you mean that you have 10 in BCD and want to know what that means, that is equivalent to 0000 0010 and would be 2 in decimal.
BCD of 862 is 100001100010
Example Binary 00111000 Convert to Decimal 56 Convert to BCD by using groups of four binary numbers for each digit 5 6 0101 0110
BCD is a decimal number. BCD is one specific way to store decimal numbers in computer memory.
Write a program to convert a 2-digit BCD number into hexadecimal
detects the invalid portion of the bcd number codes (1010-1111)
41 in decimal is 0100 0001 in BCD (this is 8 bits not 6 bits)41 in decimal is 101001 in binary (this is 6 bits, but binary not BCD)There is no 6 bit BCD representation of the decimal number 41!
181
WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL
11010010
47 in BCD & ASCII