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

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

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

Description

The $$CNV^XLFUTL 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.

Examples

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