Primary on octal notation

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the unix category.

Last Updated: 2024-04-25

What is the advantage?

re conversion:

just replace the octdigits with 3 bits binary strings (0=000, 1=001, 2=010, 3=011, 4=100, 5=101, 6=110, 7=111) and finally remove all leading zeros to the left and when you do binary to octal just add no to 2 zeros to the left until the length is divisible by 3 and than translate block of 3 bits.

How to know when a number is represented as such?

Resources