हिंदी

Introduction to Number Systems - Octal Number System

Advertisements

Topics

  • Introduction to Octal Number System 
  • Decimal to Octal conversion
  • Octal to Binary and Binary to Octal Conversion
  • Hex to Octal and Octal to Hex Conversion 

Introduction to Octal Number System

The octal number system is called the base-8 system as it has a total of eight digits (0–7). Decimal numbers 0 to 7 match octal, but decimal 8 is octal 10. Octal numbers are easily converted to binary, with each octal digit represented by a three-bit binary number. Octal number system was devised for compact representation of the binary numbers

Decimal to Octal conversion

Convert the given decimal number into Octal, like double-dabble method, where the given integer number is divided by 8 and for fractional numbers, multiply by 8 

1) (175)10  

(175)10   =  (257)8........Ans.

2) (2470)10 

(2470)10  = (4646)8............Ans.

Octal to Binary and Binary to Octal Conversion

Binary to Octal Conversion: 

  • Binary numbers can be converted into equivalent octal numbers by making groups of three bits starting from LSB and moving towards MSB for integer part of the number and then replacing each group of three bits by its octal representation 
  • For the fractional part, the groupings of three bits are made starting from the binary point. If required, we can add reading and trailing zeros. 

1) Convert (110100011111)2  in to Octal 

= 110     100      011     111

=   6        4          3         7

2) Convert (110100101.110011) in to Octal 

= 110    100     101 .  111    011

=   6        4         5   .    7       3

Octal to binary conversion:

Octal numbers can be converted into equivalent binary numbers by replacing each octal digit by its 3-bit equivalent binary

1) Convert (523)in to binary 

=    5      2      3

=  101  010  011

2) Convert (704.01)in to binary 

=   7        0        4            0        1

= 111    000    100   •    000    001

Hex to Octal and Octal to Hex Conversion

Hexadecimal to Octal Conversion:

To convert a hex number into an octal, first convert hex into a binary, and then make groups of 3-bits from LSB and add zeros on the left and right sides if required. After making the groups, convert each 3-bit binary into an octal equivalent. 

1) (5CA) 16  =   (  ?  )8

=    5          C          A

=(0101    1100     1010)2  

=  010    111    001   010

=   2        7        1        2

 (5CA) 16  =  (2712)8

2) (3B . 2E)16  =  (  ?  )8

=    3        B          2          E

=(0011   1011  .  0010   1110)2

= 000   111   011 .  001   011   100

=   0       7      3   .    1        3        4

 (3B . 2E)16   =    (073.134)8

Octal to Hexadecimal Conversion:

To convert an octal number into a hex, first convert the octal into a binary, and then make groups of 4 bits from LSB and add zeros on the left and right sides if required. After making the groups convert each 4-bit binary into a hex equivalent

1) (537)8  =  (  ?  )16

=     5         3       7

=  (101    011    111)2

=0001   0101   1111

=   1         5         F

(537)8   =   (  15F  )16

2) (53.21)8  =   (  ?  )16

=   5         3     .      2        1   

= (101    011   .   010     001)2

= 0010  1011 .  0100  0100

=    2        D    .     4       4

(53.21)8   =   (2D.44)16

If you would like to contribute notes or other learning material, please submit them using the button below.
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×