Вы находитесь на странице: 1из 1

Binary Coded Decimal

Binary coded decimal (BCD) is a system of writing numerals that assigns a four-digit binary
code to each digit 0 through 9 in a decimal (base-10) numeral. The four-bit BCD code for any
particular single base-10 digit is its representation in binary notation, as follows:
0 = 0000
1 = 0001
2 = 0010
3 = 0011
4 = 0100
5 = 0101
6 = 0110
7 = 0111
8 = 1000
9 = 1001
Numbers larger than 9, having two or more digits in the decimal system, are expressed digit
by digit. For example, the BCD rendition of the base-10 number 1895 is 0001 1000 1001
0101

Examples
Binary to Decimal > Binary Number − 11101 2

Step Binary Number Decimal Number


Step 1 111012 ((1 × 24) + (1 × 23) + (1 × 22) +
(0 × 21) + (1 × 20))10
Step 2 111012 (16 + 8 + 4 + 0 + 1)10
Step 3 111012 2910

Decimal to Binary > Decimal Number − 29 10

https://www.tutorialspoint.com/computer_logical_organization/codes_conv
ersion.htm

Вам также может понравиться