Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$CCD^XLFUTL(): Append Check Digit

Reference Type: Supported, Category: Utility Functions, ICR#: 2622

Description

The $$CCD^XLFUTL extrinsic function returns a number appended with a computed check digit. To check if the original number corresponds with the appended check digit, use the $$VCD^XLFUTL(): Verify Integrity API.

Format

  $$CCD^XLFUTL(x)

Input Parameters

x:

(required) Integer for which the check digit is computed.

REF: see "The Taylor Report" in Computerworld magazine, 1975, for the algorithm.

NOTE: This Check Digit algorithm is considered obsolete. Developers are advised to consider other alternatives to validate data integrity. Alternatives include using:

Output

returns:

Returns the number with appended check digit.

Examples

Example 1

>S X=$$CCD^XLFUTL(99889)

>W X
998898

Example 2

>S X=$$CCD^XLFUTL(7654321)

>W X
76543214