Oct$

Since 3.10

String = Oct$ ( Number [ , Digits ] )

Gets the octal representation of a number.

If Digits is specified, the representation is padded with unnecessary zeros so that Digits digits are returned.

Examples

Print Oct$(1972)
3664

Print Oct$(1972, 8)
00003664

See also