Binary Coded Decimal - BCD
roognation
Posts: 138
Searched and found nothing...wondering if BCD has not been discussed here before...maybe on the ACE forums (will I ever go back and re-qualify?)...
Anyway, I am using a for-loop to decode BCD data; is that the most efficient way to glean BCD data in Netlinx?
Thx!
Anyway, I am using a for-loop to decode BCD data; is that the most efficient way to glean BCD data in Netlinx?
Thx!
0
Comments
is this a homework question? Lol
You can use a while loop instead but I don't see any way of not looping through the data if that is what you are trying to avoid. As far as decoding is concerned there is likely various methods to do this depending on how many integers per byte, etc.
Paul
It would be nice to put something more robust together (and include in the Google repository), but I am off and running with what I have for now.
Thx!
Nice and compact, thanks for the tip! I'll install this and test later today.