OCT$ function

Purpose: OCT$ converts an integer to an octal string.


 Syntax:

 RetStr$ = OCT$(Integer%)

 Parameters:

  • Integer% Integer to be converted to octal.

 Return Value:

  • RetStr$, the return value, is a string containing the octal representation of the Integer% parameter.

Example:


 DIM RetStr$
 
 RetStr$ = OCT$(65535)
 
 PRINT RetStr$

Result:

177777