Computer Science, asked by divyanshuarya2020, 5 months ago

Briefly explain the Octal number system. answer​

Answers

Answered by shrutietw1122sh
2

Answer:

The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right). For example, the binary representation for decimal 74 is 1001010. Two zeroes can be added at the left: (00)1 001 010, corresponding the octal digits 1 1 2, yielding the octal representation 112.

In the decimal system each decimal place is a power of ten. For example:

{\displaystyle \mathbf {74} _{10}=\mathbf {7} \times 10^{1}+\mathbf {4} \times 10^{0}}{\displaystyle \mathbf {74} _{10}=\mathbf {7} \times 10^{1}+\mathbf {4} \times 10^{0}}

In the octal system each place is a power of eight. For example:

{\displaystyle \mathbf {112} _{8}=\mathbf {1} \times 8^{2}+\mathbf {1} \times 8^{1}+\mathbf {2} \times 8^{0}}{\mathbf {112}}_{8}={\mathbf {1}}\times 8^{2}+{\mathbf {1}}\times 8^{1}+{\mathbf {2}}\times 8^{0}

By performing the calculation above in the familiar decimal system we see why 112 in octal is equal to 64+8+2 = 74 in decimal.

Answered by taehyung21
2

Answer:

Octal refers to the base-8 numbering system. It comes from the Latin word for eight. The octal numbering system uses the numerals 0-1-2-3-4-5-6-7. In computing environments, it is commonly used as a shorter representation of binary numbers by grouping binary digits into threes. The chmod command in Linux or UNIX uses octal to assign file permissions.Octal is another way to count numbers. While humans normally count in tens, and machines count in twos, it is possible to use any number as the basis for counting and calculation. Some Native American tribes have used octal by counting the spaces between fingers. Characters in the 2009 film “Avatar” used octal because they had four fingers on each hand. Some mathematicians have proposed the wider adoption of octal.

Using octal is a convenient way to abbreviate binary numbers. Starting from the right, group all binary digits into sets of three. If the last group on the left does not have three digits, then add a zero. Each three-digit binary group translates into a one-digit octal number.

Start with a binary number:

01011101

Group the binary number into threes. Add a zero to the left if necessary:

001-011-101

Convert each three-digit group into an octal number:

1-3-5

Combine the numerals to form the octal number:

135

Using an octal number instead of a binary number saves digits. In the early days of computing, octal was often used to shorten 12-bit, 24-bit or 36-bit words. Hexadecimal is now more commonly used in programming, making number representations even shorter than octal.

Various symbols have been used in programming languages to designate octal, including the digit 0, the letters o or q, the digit–letter combination 0o, or the symbol & or $. Base-8 can also be shown by using the number 8 as a subscript (for example, 1358).

Perhaps the most prominent use of octal in today’s computing environment is in Linux or UNIX file and directory permissions. Using the chmod command, administrators can assign read, write and execute privileges to users, groups and others.

Similar questions