You are on page 1of 26

Introductiom to Number System

Group Members:Nikhil Ghorpade Shreyash Wakhare Guidance:-

Decimal Number System


The Decimal Numbers are represented as base 10. In Decimal Number the digits may be any number from '0' to '9. In Decimal Number system we can express any decimal number in units,tens,hundreds & so on.

*
MSB

103

102

101

100 .

10-1

10-2

10-3

10-4 LSB

Example:Represent decimal number 98.72 in power of 10.

Solution:N = 9X101 + 8X100 + 7X10-1 + 2X10-2

Binary Number System


In Binary Nuber system numbers are represented as base 2. In Binary number system only the digits '0' or '1' can be used.

Example:Represent binary number 1101.101 in power of 2 & find its decimal equivalent.

Solution:+1X2-1 N=1X23 +1X22 + 0X21 + 1X20

Octal Number System


The Octal Number are represented as base 8. In Octal number system only the digits '0' through '7' are used ('8' or '9' is not allowed).

Example:Represent octal number 567 in power of 8 & its decimal equivalent. Solution:5X82 + 6X81 + 7X80
= 5X64 + 6X8 + 7X1

=320 + 48 + 7

=375

10

Hexadecimal Number System


In Hexadecimal number system numbers are represented as base 16. And they having digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E and F. It is another number system that is particularly useful for human communication with a computer.

Example:Represent hexadecimal number 3FD in power of 16 and find its decimal equivalent. Solution:3X162 + FX161 + DX160 = 3X256 + F(15)X16 + D(13)X1 = 768 + 240 +13 = 102110

Number Base Conversion

Relation of Decimal,binary,octal & hexadecimal numbers

Following are the types of conversion: Binary to Octal Conversion Octal to Binary Conversion Binary to Hexadecimal Conversion Hexadecimal to Binary Conversion Octal to Hexadecimal Conversion Hexadecimal to Octal Conversion

Decimal

Octal

Binary

Hexadec imal

Binary to Octal
Technique
Group bits in threes, starting on right Convert to octal digits

Example:Convert ( 1 1 1 1 0 1 1 0 0)2 to octal equivalent. Solution:111 101 100

Octal number = (754)8

Octal to Binary Conversion


Technique
Convert each octal digit to a 3-bit equivalent binary representation

Example:Convert (634)8 to binary. Solution:6 3 4

110

011

100

Binary number = 110 011 100

Binary to Hexadecimal
Technique
Group bits in fours, starting on right Convert to hexadecimal digits

Example:Convert(1101100010011011)2 to hexadecimal equivalent. Solution:1101 1000 1001 1011

Hexadecimal number = (D89B)H

Hexadecimal to Binary
Technique
Convert each hexadecimal digit to a 4-bit equivalent binary representation

Example:Convert (3FD)H to binary. Solution:3 F D

0011

1111

1101

Binary number = 0011 1111 1101

Octal to Hexadecimal
Technique: - Convert octal number to its binary equivalent. - Convert binary number to its hexadecimal equivalent.

Example:Convert (615)8 to its hexadecimal equivalent. Solution:Step 1: Octal to binary

110

001

101

binary number = 110001101 Step 2: Binary to hexadecimal

0001

1000

1101

1
Hexadecimal number = 18DH

Hexadecimal to Octal
Technique: - Convert hexadecimal number to its binary equivalent. - Convert binary number to its octal equivalent.

Example:convert (25B)H to its octal equivalent. Solution:Step 1 : Hexadecimal to binary

0010

0101

1011

Binary number = 0010 0101 1011 Step 2 : Binary to octal

001

001

011

011

Octal number = 11338

Thank You........!