NAME

hex$ - convert numeric to hexadecimal string

SYNOPSIS

v$ = hex$(NumExpr)

DESCRIPTION

Hex$ converts the value of the numeric expression supplied as its argument into a string of characters consisting of the hexadecimal representation of the value.  NumExpr may be any numeric expression whose value is in the range -32768 to 32767. 

EXAMPLE

The following example uses the hex$ function and the oct$ function to figure the hexadecimal and octal representation for a decimal value:
	x = 25
	print "Decimal", "Hexadecimal", "Octal"
	print x, hex$(x), oct$(x)
The output produced is
	Decimal       Hexadecimal   Octal
	 25           19            31

SEE ALSO

oct$

DIAGNOSTICS

An "Overflow" error occurs if NumExpr is outside the range -32768 to 32767. 

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber