AKD BASIC User Guide | 5 AKD BASIC Functions
5.20 OCT$()
General Information
Type Function
Description OCT$() converts an integer number to its equivalent octal ASCII string.
Syntax
result$ = OCT$(x)
Instructions
Octal numbers are numbers to the base 8 (rather than base 10).
The argument to HEX$() is rounded to an integer before OCT$(x) is evaluated.
Example
Dim x, y as integer
Dim result1$, result2$ as string
x = 20
y = &H6A
result1$ = OCT$(x)
result2$ = OCT$(y)
print result1$, result2$ 'prints: 24 152
Related Topics
HEX$() | STR$()
83 Kollmorgenâ„¢ | March 30, 2012