Decimal to Binary conversion
webcrawler42
Posts: 3
What would be the easiest way to convert from Decimal to Binary? I'm coming from mainly a C background.
Is there a strcat() or something similar to build strings?
Is there something like atoi(), but dtob?
Is there a strcat() or something similar to build strings?
Is there something like atoi(), but dtob?
Comments
What you want to convert is a string to binary... that is something else. I'm sure you can use one of the routines in the floating point package for the propeller
Decimal
to binary
and to hex
Also, can't you assign variables to bits of a byte and push the number into a byte and review the "bit" variables? I saw that on a stamp anyway.