QBasic 1.1: OCT$ Function

Syntax

HEX$(numeric-expression&)
OCT$(numeric-expression&)

Description / Parameter(s)

numeric-expression& Any numeric expression. The expression is rounded to an integer or long integer before it is evaluated.

Example

INPUT x a$ = HEX$ (x) b$ = OCT$ (x) PRINT x; "decimal is "; a$; " hexadecimal and "; b$; " in octal."