Spectacular Butter
New Member
What mathematical formula should i use to convert an 8 bit binary to BCD?
for example in 4 bit binary, i just add 0110 to the binary if it is >1001 to produce the BCD. i realise this formula doesn't work when the decimal equivalent of the binary is 20 or more.
for example in 4 bit binary, i just add 0110 to the binary if it is >1001 to produce the BCD. i realise this formula doesn't work when the decimal equivalent of the binary is 20 or more.