oct2bin() Function

Function

oct2bin( value, place )

Converts an Octal number as text to a Binary number as text.

Parameters

Keyword Type Description

value

Text

Octal value as text to convert, such as 771.

place

Number

The number of places in the result.

Returns

Text

Usage considerations

Using the value parameter

Invalid digits for a value parameter, including signs, are ignored.

Using the place parameter

The default value for place is however many places are necessary to represent the number.

Examples

You can experiment with this function in the test box below.

Test Input

oct2bin(144) returns 1100100

Open in Github Built: Fri, Nov 19, 2021 (11:59:11 AM)

On This Page

FEEDBACK