Bob I wrote:
>>>
>>> Based on the logic shown by your example
>>>
>>>> 0 = 0xFFFF = 1111 1111 1111 1111
>>>> 1 = 0xFFFE = 1111 1111 1111 1110
>>>> 2 = 0xFFFC = 1111 1111 1111 1100
>>>> 3 = 0xFFF8 = 1111 1111 1111 1000
>>>
>>>
>>> 16 = 0x0000 = 0000 0000 0000 0000 will be the highest you can go
>>
>>
>> -----------
>> 0,1,2,3 - is not digits, its just rides quantity, it does not conform
>> the hex and binary format.
>>
>
> If you write 0 decimal to the card you get 16 rides.
>
> Using the 10 rides for example you will need 6 ones and 10 zeros. So,
> if you look at Windows Calculator in Bin mode and hit 1111 11 then 00
> 0000 0000, and then select Dec. You will see that you need to put 64512
> on the card.
>
All this to ride the bus ? :-)
http://www.rigainside.info/2009/05/p...h-and-how.html
*******
Why not buy the denomination of card to be duplicated, and just
read the number off it, and then again after each ride. That way,
you can generate a table of values.
Paul