Sorry forgot a few answers/comments:

John Machin wrote:
>**** SHOULD BE >=
>currently add([6, 6], [4, 4] -> [10, 10]

True, thanks

> *** try - 10 instead of % 10
> If the first operand is > 19, you have a bug!
> This might save a few CPU cycles on your smartcard

can it ? each array value will be [0..9]

>>**** SHOULD CHECK FOR CARRY AT END
>>currently add([9], [8]) -> [7]
>>should return [1, 7] or handle overflow somehow

True, this actually should become an error from the card to the calling
device. That would be a pretty large number though.


>>**** MINUS ZERO?
I just do not want to leave it at one(1) if it is.


Regards,

Philippe

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to