Subject: Re: max int value
To: Fong Siu Lung Gordon <ein@hkstar.com>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 05/16/2000 00:49:16
In message <Pine.SOL.4.10.10005161343170.25601-100000@imsp234.hkstar.com>, Fong
 Siu Lung Gordon writes:
>Sorry for not detail describe my problem.  The problem is to calculate the
>check digit for barcode which is use as the borrow card number (14 digits
>long).  However, my system (i386) only count the first 10 digits only. any
>clue. ?  Thanks.

Yes, don't use integer types.  You're working with a string, not a number.

(Seriously; I did barcode software in another incarnation, back at Xerox.
What you have is *NOT* a number; it is a 14-character string which happens
to contain digits.)

-s