Philippe Martin wrote: > 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 ? >
can WHAT do WHAT? > each array value will be [0..9] if so, you can use - 10 instead of %10 if not, then whatever produced your input has a bug > > >>**** 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. The question is "what do you think you are achieving by having a MINUS sign in front of the zero instead of plain old ordinary zero?" -- http://mail.python.org/mailman/listinfo/python-list