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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/17/00 22:52
Read: times


 
#7369 - RE: about 32bit hex to bcd convertion
Better yet:
The maximum decimal value you can get is 4294967295, the minimum is 0. That's 10 digits
Divide the number you want to convert by 1000000000. The integer part of the quotient is the first digit of the decimal representation.
Divide the remainder by 100000000. The integer part of that is the second digit.
Divide the remainder of that by 10000000. The integer part of this didvision is the third digit.
And so on... You get the picture!
In the end you will en up with dividing a remainder by 10. The integer part of that quotient represents the tens of your original 32 bit value. The remainder represents the ones.


List of 8 messages in thread
TopicAuthorDate
about 32bit hex to bcd convertion            01/01/70 00:00      
RE: about 32bit hex to bcd convertion            01/01/70 00:00      
RE: about 32bit hex to bcd convertion            01/01/70 00:00      
RE: about 32bit hex to bcd convertion            01/01/70 00:00      
RE: about 32bit hex to bcd convertion            01/01/70 00:00      
RE: about 32bit hex to bcd convertion            01/01/70 00:00      
RE: about 32bit hex to bcd convertion            01/01/70 00:00      
RE: about 32bit hex to bcd convertion            01/01/70 00:00      

Back to Subject List