Subject: Re: max int value
To: Fong Siu Lung Gordon <email@example.com>
From: Peter Seebach <firstname.lastname@example.org>
Date: 05/16/2000 00:49:16
In message <Pine.SOL.email@example.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.)