Tandy 1000 Basic Reference Manual page 176

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 I BASIC Keywords
HEX$
Function
HEX$(nurnber)
Calculates the hexadecimal value of
number.
HEX$ returns a string that represents the hexadecimal value of
number.
Since the value returned is like any other string, you
cannot use i t in a numeric expression. You cannot add hex
strings; however, you can concatenate them.
Examples
P R I N T
H E X $ < 3 0 ) ,
H E X $ < 5 0 ) ,
H E X t C 9 0 )
prints the following strings l E , 32, and
5A.
Y $
= H E X $ < X / 1 6 )
Y$
is the hexadecimal string representing the integer quotient
Xl16.
174

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents