BIN2OCT

Converts a signed binary number to signed octal format. Learn more

Video field
Engineering

BIN2OCT is a function in Google Sheets that converts a signed binary number to its octal (base-8) equivalent.

The "signedbinarynumber" argument should be a reference to a cell containing a signed binary number or a valid signed binary number enclosed in double quotes (""). A signed binary number is a binary number that includes a sign bit, which indicates whether the number is positive or negative.

The optional "significant_digits" argument specifies the number of digits that the resulting octal number should have. If omitted, the function will use the minimum number of digits necessary to represent the number.

The function returns an octal number that represents the signed binary number in octal format. The result is interpreted based on two's complement notation. If the sign bit is 1, indicating a negative number, the function will return the two's complement of the binary number.

For example, if the cell A2 contains the signed binary number "0101", which represents 5 in two's complement notation, the formula =BIN2OCT(A2,2) will return the value "05".

Want even more from Google Sheets?


With Softr, you can turn your spreadsheets into powerful web apps.You can give advanced roles and permissions to each user, build advanced logic and automation flows, customize the design to your needs, and much more.


Softr also offers a growing library of templates for internal tools, client portals, community hubs, and more. The templates come with a Google Sheet or an Airtable base that you can use to store and manage your data easily.


Try Softr now and build your custom web apps in 10 minutes no code required!

Client Portal | Internal Tools | Web App Builder | Free Website Builder Made with Softr