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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/29/06 12:16
Read: times


 
#121308 - binary to bcd and vice versa
hi all,
i want to know if there is any c command to convert a 8 bit binary number to pack bcd number and vice versa.
example:
binary number 0 0 0 1 1 0 0 1 ---> (25 in decimal)
expected bcd number is
0 0 1 0 0 1 0 1
which is 2 5

and vice versa.
best regards,
Shankar


List of 5 messages in thread
TopicAuthorDate
binary to bcd and vice versa            01/01/70 00:00      
   No Commands in C but functions            01/01/70 00:00      
      BCD manipulation            01/01/70 00:00      
   please, Please, PLEASE search first!            01/01/70 00:00      
   binary to bcd code            01/01/70 00:00      

Back to Subject List