answersLogoWhite

0


Best Answer

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
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Algorithm for convert decimal to bcd representation?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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!


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.


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 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


How do you explain Decimal to BCD encoder?

explain decimal to BCD encoder


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 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 the main advantage of binary coded decimal?

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


represent decimal number 862 a) BCD?

BCD of 862 is 100001100010


Write a program to convert a 2 digit BCD number into hexadecimal number?

Write a program to convert a 2-digit BCD number into hexadecimal


What is a 4 BCD code?

A 4 BCD code is a 4 decimal-digit BCD code, thus a 16 digit binary-code. You take the decimal number 3545. It's BCD code is 0011 0101 0100 0101 where every 4 bits represent a decimal digit.