answersLogoWhite

0

It's basically the algorithm to break a number down to digits. Then each digit would be represented as a natural binary number on its own.
To break it down to digits, get a remainder after division with 10 (that's the last digit), then divide the number by 10 to remove that digit. Repeat until there are digits, and store each one into an array (or print them to screen without storing).

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

What is the bcd form of 438 in odd parity?

To convert the decimal number 438 into Binary-Coded Decimal (BCD) form, we first represent each digit separately in binary. The digits of 438 are 4, 3, and 8, which in BCD are 0100, 0011, and 1000, respectively. To achieve odd parity, we need to ensure the total number of 1s in each BCD representation is odd. Therefore, we add an additional 1 to the BCD of 4 (making it 0101) and leave the BCDs of 3 (0011) and 8 (1000) unchanged, resulting in the odd parity BCD representation of 438 as 0101 0011 1000.


What is deference between BCD and decimal number?

BCD is a decimal number. BCD is one specific way to store decimal numbers in computer memory.


What is role of 6 in bcd addition?

In Binary-Coded Decimal (BCD) addition, the digit 6 plays a crucial role as a threshold for determining whether a correction is needed after standard binary addition. BCD represents decimal digits using four bits, and if the sum of two BCD digits exceeds 9 (which is 1001 in binary), a correction of 6 (0110 in binary) is added to bring the result back into valid BCD range. This adjustment ensures that the resulting sum correctly represents decimal values. Thus, 6 is effectively used to convert invalid BCD results back into valid representations.


Convert 01011101101 to bcd?

12


How can we Convert the following decimal numbers to BCD code and then attach an odd parity bit. (a)74 (c)8884 (e)165 (b) 38 (d) 275 (f) 9201?

To convert decimal numbers to Binary-Coded Decimal (BCD), each digit is represented by its 4-bit binary equivalent. For instance, 74 in BCD is 0111 0100, 38 is 0011 1000, 8884 is 1000 1000 1000 0100, 275 is 0010 0111 0101, 165 is 0001 0110 0101, and 9201 is 1001 0010 0000 0001. To add an odd parity bit, count the number of 1s in the BCD representation; if it's even, add a 1, and if it's odd, add a 0. For example, 74 becomes 0111 0100 1 (5 ones), and 38 becomes 0011 1000 1 (5 ones).

Related Questions

How do you convert BCD to decimal?

explain decimal to BCD encoder


What is the BCD representation of the decimal number 41 in 6-bit?

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!


Is an invalid state in an 8421 BCD counter?

Yes, an invalid state can occur in an 8421 BCD (Binary-Coded Decimal) counter. The 8421 BCD representation can only encode decimal digits from 0 to 9, which corresponds to binary values from 0000 to 1001. Any binary representation from 1010 (A) to 1111 (F) is considered invalid in BCD, as it does not represent a valid decimal digit.


What is the bcd form of 438 in odd parity?

To convert the decimal number 438 into Binary-Coded Decimal (BCD) form, we first represent each digit separately in binary. The digits of 438 are 4, 3, and 8, which in BCD are 0100, 0011, and 1000, respectively. To achieve odd parity, we need to ensure the total number of 1s in each BCD representation is odd. Therefore, we add an additional 1 to the BCD of 4 (making it 0101) and leave the BCDs of 3 (0011) and 8 (1000) unchanged, resulting in the odd parity BCD representation of 438 as 0101 0011 1000.


How do you generate BCD output?

BCD (Binary Coded Decimal) output can be generated using decimal-to-BCD conversion algorithms. One common method involves dividing the decimal number by 10 and storing the remainder as the Binary Coded Decimal digit. This process is repeated until all decimal digits are converted into BCD form. Alternatively, some microcontrollers have built-in instructions to directly convert decimal numbers to BCD format.


How do you convert binary number to bcd number on paper?

Example Binary 00111000 Convert to Decimal 56 Convert to BCD by using groups of four binary numbers for each digit 5 6 0101 0110


Can you Explain the use of BCD coding systems in a business environment?

it is used for representing decimal numbers in which each decimal digit is represented by a sequence of binary digits. This makes it relatively easy to convert the numeric representation for printing or display purposes, and speeds up decimal calculations.


How do you explain Decimal to BCD encoder?

explain decimal to BCD encoder


What is deference between BCD and decimal number?

BCD is a decimal number. BCD is one specific way to store decimal numbers in computer memory.


Applications of bcd to binary code cnvertor?

Many non-integral values, such as decimal 0.2, have an infinite place-value representation in binary (.001100110011...) but have a finite place-value in binary-coded decimal (0.0010)[bcd]. Consequently a system based on binary-coded decimal representations of decimal fractions avoids errors representing and calculating such values. Rounding at a decimal digit boundary is simpler in BCD. Addition and subtraction in decimal does not require rounding.


What is the main advantage of binary coded decimal?

Binary coded decimal (BCD) is easier to convert between displayed or printed form than is pure binary.


Difference between bcd and binary?

Binary is a base-2 numeral system that uses only two digits, 0 and 1, to represent values. Binary-Coded Decimal (BCD), on the other hand, is a form of binary encoding where each decimal digit is represented by its own group of four binary bits. For example, the decimal number 25 in binary is represented as 11001, while in BCD, it is represented as 0010 0101 (for 2 and 5). BCD is often used in digital displays and calculators to ensure accurate decimal representation.