Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/08/04 09:30
Read: times


 
#72033 - RE: 16bit Binary to BCD with decimal
Responding to: ???'s previous message
How to do this depends upon exactly what it is that you mean. Perhaps you could post a relpy that clarifies what it is that you neeed to do.

Presumably, you have a binary value that you wish to convert to decimal form. But, for scaling reasons you have a radix-point somewhere.

That radix-point might be a binary point, i.e. your 16-bit binary value is scaled by a factor of 2 or 4 or 8 etc.

The radix-point might be a decimal point, i.e. your 16-bit binary value is scaled by a factor of 10 or 100 or 1000 etc.

These two situations need to be handled in slightly different ways. A decimal point is fairly straightforward to deal with as has been explained by earlier posts.

If you are dealing with a binary point, let me know in a reply.

You should have no difficulty locating examples of binary to BCD conversion in the Code Library or here:

http://www.programmersheaven.com/zone5/cat.../34429.htm




List of 5 messages in thread
TopicAuthorDate
16bit Binary to BCD with decimal            01/01/70 00:00      
   RE: 16bit Binary to BCD with decimal            01/01/70 00:00      
   RE: 16bit Binary to BCD with decimal            01/01/70 00:00      
   RE: 16bit Binary to BCD with decimal            01/01/70 00:00      
   RE: 16bit Binary to BCD with decimal            01/01/70 00:00      

Back to Subject List