![]() |
Octal is a number system with a base of 8 i.e. it uses 8 numeric values, namely, {0, 1, 2, 3, 4, 5, 6, 7}. This number system is mostly used in the programming of computer programs. For example (32150.7642)8, (275)8, (324)8, (2243)8 are Octal numbers. In this article, we will discuss the octal number system. What is a Number System?A Number system is a method of representing numbers with the help of a particular amount of numeric values and a set of rules. A few of the number systems are as follows :
Table of ConversionsThe table given below shows the equivalent values of some Octal numbers (0 to 7) in the Binary number system. One Octal number is the equivalent of three Binary bits.
Octal to Binary ConversionSo the process to convert Octal to binary is a simple one. As we have established earlier an Octal number is equivalent to three binary bits. So, what we have to do is first convert each digit into its binary equivalent. Example: Convert 2138 to a binary number.
Binary to Octal ConversionThe process of converting binary into Octal is indeed a simple one. So, let’s with the example of (110011)2, Example: Convert 1001110012 to an octal number.
Octal to Decimal ConversionThe process of converting Octal to Decimal is also pretty simple. But not quite as simple as Octal to Binary. We will be using the Expansion Method. For illustration purposes let’s take (62)8,
Example: Represent 1238 as a Decimal Number.
Decimal to Octal ConversionThe process of converting Decimal to Octal is a simple one. For example let’s take (534)10 So, we will be dividing the number i.e. 534 by 8 and we will also be noting down the remainders. When we divide 534 by 8 we get 66 and 6 remainder Now we will divide 66 by 8, When we divide 66 by 8 we get 8 and 2 remainder, Now we will divide 8 by 8, when we divide 8 by 8 we get 1 and 0 remainder Now we will divide 1 by 8, when we divide 1 by 8 we get 0 and 1 remainder When we read the remainders as the number we read them from the bottom to the top So, we get (1026)8 Hence, (534)10=(1026)8 Octal to Hexadecimal Conversion
The corresponding value of 0-9 remains the same in hexadecimal and 10-15 corresponds to A-F in hexadecimal is represented as,
Example: Convert 1748 to a hexadecimal number. Step 1: Convert 1748 to decimal Hexadecimal to Octal ConversionTo convert a Hexadecimal number to an Octal number we have to First convert the Hexadecimal number to a Decimal number and then the Decimal number to an Octal number. Steps to Convert Hexadecimal Number to Decimal NumberWe can use the following steps to convert hexadecimal numbers to decimal numbers.
Steps to Convert Decimal Number to Octal NumberWe can use the following steps to convert decimal numbers to octal numbers.
Let’s consider an example for better understanding. Example: Convert 9B16 to an Octal Number. Step 1: First convert 9B16 to decimal number: Some Uses of OctalThe Octal number system is widely used in computing and computer programming. It became popular when systems such as UNIVAC 1050, PDP-8, ICL 1900, and IBM mainframes started using it for 6-bit, 12-bit, 24-bit, or 36-bit words. As each Octal digit represents 3 binary bits. It is also used in Unix-like operating systems where file permissions are often represented using octal numbers. Each digit corresponds to the settings for the owner, group, and others. For instance, 755 means read, write, and execute permissions for the owner, and read and execute permissions for others. Frequently Asked Questions on Octal – FAQsWhat is the Octal Equivalent of (100)10?
What are the uses of the Octal Number System?
|
Reffered: https://www.geeksforgeeks.org
Computer Subject |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 15 |