HI

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Numeric functions >

HI

 

Description

 

Extract the most significant (high-order) portion of an integer class value.

 

Syntax

 

n = HI({ BYTE | INTEGER | WORD | DWORD | LONG }, Num)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

Num

Number

No

An integer class number (INTEGER, WORD, DWORD, LONG, QUAD)

 

Remarks

 

Num must be up to twice the size of the numeric type specified.

So, for example, if you ask to return highest INTEGER, 16 bit, Num must be up to a 32 bit integer class number.

 

Restrictions

 

See also

 

Numeric functions

 

Examples