I know of a couple of algorthms that generate Check digit 11 and check digit
10 numbers, these don't use x in them though I suspect it is a related
algorithm.  IRD numbers are validated also by a similar nmethod except that
there are two algorithms that IRD numbers use to validate - if both fail the
number is invalid.  Contact me if you need more details.

John Bird
[EMAIL PROTECTED]
Beyond Data Systems/Acclipse Legal
Ph 962-7375
Po Box 2869
Christchurch
 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dennis Chuah
Sent: Tuesday, February 24, 2004 7:17 AM
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Check Digit



There are two common algorithms, one which uses the 'X' and one that
doesn't.  Basically the one that uses the 'X' takes a weighted sum of the
digits and divides it by 11.  The remainder is the check digit.  If the
remainder is 10, then the digit is 'X'.  'X' as in the Roman numeral.

Example:

number:    123456
weights:    153872
product:    1(10)9(32)(35)(12)
sum:    99
remainder / check digit: 0

You will need to find out the weights they use.  Also there is a variant
that first takes the remainder off 10, and if applied to the above example,
the check digit will be 'X'.

----- Original Message -----
From: "Mark Howard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 23, 2004 5:42 PM
Subject: [DUG] Check Digit


> Hi
>
> We have a client who is using a Docket numbering system that 
> incorporates
a check
> "digit" at the end.  The check "digit" is 0-9 or x.
>
> thus: 399079x, 3990800, 3990811
>
> The purpose of the check digit is to verify the validity of the digits 
> in
the root number
> - a sequence of digits in the root number can have only one valid 
> check
digit.
>
> I suspect that this is a common device, and if it is, I am wanting to 
> know
what the
> algorithim is to determine the check digit from the root number.
>
> Anyone any ideas?
>
> Thanks
>
> Mark
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to