ed
Not sure how you are using binary in the above example. Base 2 binary only has 2 digits 0 or 1. It takes
10 digits to cover a P-3 in base-2. Each digit in the string repersents a value so to convert a binary string
to a numerical value add the values for each (1) like in the pic below. It takes 4 digits to cover the numbers
0 to 15
0000=0
0001=1
0010=2
0011=3
0100=4
0101=5
0110=6
0111=7
1000=8
1001=9
1010=10
1011=11
1100=12
1101=13
1110=14
1111=15
The LSD is the right most digit in a string and any time this digit is a 1 the number will be odd and likewise if the
LSD is 0 then the number will be even. Using a 2 digit binary string the highest numerical value is 1+2=3. 3 digits
is 1+2+4=7 etc... 10 digits = 1023 0000000000=0 to 1111111111 = 1023. Since 0000000000 counts as the lowest
value you have to always add 1 to the total numbers that can be repersented. Example. Using one binary digit you
have two values zero and one. Think of it like a pick-3 where you have 1000 combinations of 3 digits 000 to 999.
The 000 counts as the first set in the matrix. If you can explain a little more about what you are doing I might be
able to help. RL