hex Function

Function:

Converts unsigned 16-bit numeric value (word) into its HEX string representation.

Syntax:

hex(num as integer) as string

See Also:

str, lstr, stri, lstri, bin, lbin, lhex, val, lval


Part

Description

num

Value to convert.


Details

The standard "&h" prefix is added at the beginning of the string.


Examples

Tibbo BASIC
dim s as string
 
s = hex(34) 'result will be '&h22'

hex Function

Details

Examples