Oct function (LotusScript® Language)

Returns the octal representation of a number as a string.


Oct[$] ( numExpr )



Any numeric expression. If numExpr evaluates to a number with a fractional part, LotusScript® rounds it to the nearest integer before deriving its octal representation.

Return value

Oct returns a Variant of DataType 8 (String), and Oct$ returns a String.

Return values will only include the numerals 0 to 7, inclusive. The maximum length of the return value is 11 characters.


If the data type of numExpr is not Integer or Long, then LotusScript® attempts to convert it to a Long. If it cannot be converted, a type mismatch error occurs.