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

$$CNV^XLFUTL(): Convert Base 10 to Another Base

Reference Type: Supported, Category: Utility Functions, Integration Agreement: 2622

Description

This extrinsic function converts a number from Base 10 to another base, which must be between 2 and 16.

Format

  $$CNV^XLFUTL(n,base)

Input Parameters

n:

(required) Base 10 number to convert.

base:

(required) The base to which the number is to be converted.

Output

returns:

Returns the converted number to specified base.

Example 1

>S X=$$CNV^XLFUTL(15,2)

>W X
1111

Example 2

>S X=$$CNV^XLFUTL(255,2)

>W X
11111111

Example 3

>S X=$$CNV^XLFUTL(255,8)

>W X
377


VA (Internet) / VA(Intranet) / OI / PD / Site Map / Terms of Use / VA Privacy Policy / Accessibility

Reviewed/Updated: August 26, 2011

If you have questions, need more information, or are having accessibility problems with this website, please contact us by E-Mail: Webmasters, Phone: 510-768-6800, or FAX: 510-768-6850.