Name

oct — convert an integer to an octal string

Synopsis

string oct( n,  
  digits);  
int   n;
int   digits ;

Description

Returns the value n as an octal (base 8) string. If the optional parameter digits is present then the string will be left padded with "0" characters so that it is at least digits in length.

Example 40. oct Example

string octstr = "0" + oct(32);      // = "040"