EasyManua.ls Logo

Kollmorgen AKD Basic

Kollmorgen AKD Basic
506 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AKD BASIC User Guide | 5 AKD BASIC Functions
5.9 HEX$()
General Information
Type Function
Description HEX$() converts an integer number to its equivalent hexadecimal ASCII string.
Syntax
result$ = HEX$(x)
Instructions
Hexadecimal numbers are numbers to the base 16 (rather than base 10).
The argument to HEX$() is rounded to an integer before HEX$(x) is evaluated.
Example
Dim x,y as integer
Dim result1$, result2$ as string
x = 20
y = $H6A
result1$ = HEX$(x)
result2$ = HEX$(y)
Print result1$, result2$
'prints 14 6A
Related Topics
OCT$() | STR$()
Kollmorgen | March 30, 2012 72

Table of Contents

Related product manuals