NAME

oct$ - convert numeric to octal string representation

SYNOPSIS

v$ = oct$(NumExpr)

DESCRIPTION

Oct$ converts the value of the numeric expression supplied as its argument into a string of characters consisting of the octal 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

hex$

DIAGNOSTICS

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

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber