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

$$VCD^XLFUTL(): Verify Integrity

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

Description

The $$VCD^XLFUTL extrinsic function verifies the integrity of a number with an appended check digit. The check digit must be appended by the $$CCD^XLFUTL(): Append Check Digit API.

Format

  $$VCD^XLFUTL(number)

Input Parameters

number:

(required) Number to verify, including appended check digit.

Output

returns:

Returns:

  • 1—Number corresponds to check digit.

  • 0—Number does not correspond to check digit.

Examples

Example 1

>S X=$$VCD^XLFUTL(76543214)

>W X
1

Example 2

Transposing "32" to "23":

>S X=$$VCD^XLFUTL(76542314)

>W X
0