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

$$BASE^XLFUTL(): Convert Between Two Bases

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

Description

This extrinsic function converts a number from one base to another. The base must be between 2 and 16, both from and to.

Format

  $$BASE^XLFUTL(n,from,to)

Input Parameters

n:

(required) Number to convert.

from:

(required) Base of number being converted.

to:

(required) Base to which the number is to be converted.

Output

returns:

Returns the converted number from one base to another.

Example 1

>S X=$$BASE^XLFUTL(1111,2,16)

>W X
F

Example 2

>S X=$$BASE^XLFUTL(15,10,16)

>W X
F

Example 3

>S X=$$BASE^XLFUTL("FF",16,10)

>W X
255


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.