Hi,
Well keeping busy again, something like this might have been posted before, but because I could only find half of what I wanted I thought I would do the other half (binary to decimal) and post it all together.
Here we are taking a decimal value and converting it to a binary string, I'm using what LarryMc posted for this first part.
The second part (I might have already posted something like this as well) I am converting the binary string back to a decimal value.
As the binary string will vary in length, I'm making sure it's packed to 16 digits.
I know quite a few of you use binary from time to time, so I thought I would post
this all in one place.
Thanks,
Andy.
:)