0% found this document useful (0 votes)
16 views27 pages

Number-Systems 662e2885851e6

The document provides an introduction to various number systems, including binary, decimal, octal, and hexadecimal, detailing their bases and symbols. It explains how to convert numbers between these systems using specific methods for each conversion type. Additionally, it includes examples for converting decimal numbers to binary, octal, and hexadecimal, as well as converting from binary, octal, and hexadecimal back to decimal.

Uploaded by

sesadiperera16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views27 pages

Number-Systems 662e2885851e6

The document provides an introduction to various number systems, including binary, decimal, octal, and hexadecimal, detailing their bases and symbols. It explains how to convert numbers between these systems using specific methods for each conversion type. Additionally, it includes examples for converting decimal numbers to binary, octal, and hexadecimal, as well as converting from binary, octal, and hexadecimal back to decimal.

Uploaded by

sesadiperera16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

Introduction To Number

System

By. Sa ndali Awishka Sha shindu Thisera


BSc (Hons)Computing in So ftware Eng ineering
Lecturer 1
Number System
• Number System define a set of values used to represent
quantity

Name Base

Binary 2

Decimal 10

Octal 8

Hexadecimal 16
Decimal Number System
• Base is 10
• Symbols 0,1,2,3,4,5,6,7,8,9
• Each position in a decimal number represents a power of the base 10

1 5 3 6
(103 * 1)0 (102 * 5)03 (101 * 3)0
3 (100 * 6)03 3 * (

1000 + 500 + 30 + 6

𝐴𝑛𝑠𝑤𝑒𝑟: 153610
Binary Number System
• Base of Binary Number system is 2
• Symbols 0,1
• Each position in a binary number represents a power of the base 2.
• The binary or base 2 number system uses only the digits 0 and 1 .
• These binary digits are called bits

10112
LSB
MSB
Last Significant Bit
Most Significant Bit
Octal Number System
• Base of Binary Number system is 8
• Symbols 0,1,2,3,4,5,6,7
• Each position in a binary number represents a power of the base 8.

37048
Hexadecimal Number System(Hex)
• Base is 16
• Symbols 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
• Each position in a hexadecimal number represents a power of the base
16
• Ex: 3𝐹7𝐴 16
• Decimal Equivalents od hexadecimal numbers
Converting Numbers
Decimal To Binary
Convert the 1510 to binary equivalent.
Decimal To Binary Cont.
i. Convert the 37 10 to binary equivalent.
ii. Convert the 83 10 to binary equivalent.
iii. Convert the 65 10 to binary equivalent.
Decimal To Octal
Decimal To Octal
1.Convert 45610 to Octal
2.Convert 21210 to Octal
3.Convert 10110 to Octal
4.Convert 5210 to octal.
5.Convert (127)10 to Octal.
6.Convert 10010 to octal.
Decimal To Hex
Decimal To Hex
I. 42 10
II. 3725 10
III. 75 10
IV. 2048 10
V. 910 10
Binary To Decimal
Ex:
Binary To Decimal
1. Convert 111102 into a decimal number system.
2. Convert 01102 into a decimal system.
3. What is the equivalent decimal system of the binary number 1111 2?
4. How to convert the binary number 1110110 2 into a decimal number system?
5. Convert the binary number 01010012 into a decimal system.
6. Convert 11101012 into the decimal number system.
7. Convert the given binary number 100001 2 into a decimal number system.
8. Find the equivalent decimal system for the binary number 110011001 2.
9. Determine the equivalent decimal system for the binary system 111 2.
10. Convert 10010100012 into the decimal number system.
Binary To octal
• Separate the given binary number into 3 -bit groups
(Always starting from the LSB)
• Find the decimal equivalent of each 3 -bit group
Binary To octal
• 011111000100
• 1111110
• 111110011102
Binary To Hex
• Separate the given binary number into 4-bit
groups (Always starting from LSB)
• Find the decimal equivalent of each 4-bit group

• 1110102
• 110010012
Octal To Binary

I. 65218
II. 37048
Octal To Decimal
Octal To Decimal

I. Suppose 2158 is an octal number, then it’s decimal form will be,
II. Let 125 is an octal number denoted by 1258. Find the decimal
number.
III. 17658
IV. 7438
V. 37788
Octal To Hex

I. What is the hexadecimal equivalent of 508


II. Covert the octal number 568 to a hexadecimal
number.
III. Convert 5368 from octal to hexadecimal number
Hex To Decimal

I. 116916
II. 𝐴40𝐹16
III. 9216
IV. 2𝐶016
Hex To Binary

I. Convert A2B16 to an equivalent binary number.


II. Convert E16 to an equivalent binary number.
III. Convert 3016 to an equivalent binary number.
IV. Convert FDA16 to an equivalent binary number
V. Convert 98B16 to an equivalent binary number
VI. Convert 5C16 to an equivalent binary number
VII. Convert 10016 to an equivalent binary number
Hex To Octal

I. Convert 1BC16 into an octal number.


II. Find the equivalent octal form of C116.
III.Find the equivalent octal form of 10516
IV.Convert ABCD16 to equivalent octal form.
V. Convert 91216 to equivalent octal form.
VI.Convert 216 to equivalent octal form.
VII.Convert 1016 to equivalent octal form.
Summery
To Convert from decimal number system to any other number system.

• Keep on dividing the decimal number by the base of the desired number system until 0 is
obtained for the quotient.

Ex. To convert to binary ,divide by 2


To convert to octal ,divide by 8
To convert to hex ,divide by 16

Write down the remainders from Bottom to Top (LSB to MSB)

To Convert from any other number system to decimal number system

• Find the base values and place values .


• Multiply the place with corresponding digit (or bit)
• Add The result to obtain the answer
Don't let what you cannot do
interfere with what you can
do.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy