SlideShare a Scribd company logo
Number System
CONTENTS
Number System
Representation of Numbers of Different
Radix
Conversion of Numbers from one Radix to
Another Radix
Complement of Number
Binary Arithmetic
What is Number System ?
•A system for representing number of certain type.
• Example:
–There are several systems for representing the
–counting numbers.
– These include the usual base “10” or decimal system : 1,2,3
,…..10,11,12,..99,100,…
System Base Symbols
Used by
humans?
Used in
computers?
Decimal 10 0, 1, … 9 Yes No
Binary 2 0, 1 No Yes
Octal 8 0, 1, … 7 No No
Hexa-
decimal
16 0, 1, … 9,
A, B, … F
No No
Common Number System
Decimal Binary Octal
Hexa-
decimal
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
Counting
Counting
Decimal Binary Octal
Hexa-
decimal
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
Conversion Among Bases
Hexadecimal
Decimal Octal
Binary
•Group into 3's starting at least significant symbol (if the
number of bits is not evenly divisible by 3, then add 0's at
the most significant end)
• write 1 octal digit for each group
e.g.: (1010101)2 to ( )8
001 010 101
1 2 5
Answer = 1258
Binary to Octal
•For each of the Octal digit write its binary equivalent
e.g.: (257)8 to ( )2
Answer = (010101111)2
Octal to Binary
2 5 7
010
101
111
Binary to Hexadecimal
• Group into 4's starting at least significant symbol (if the
number of bits is not evenly divisible by 4, then add
0's at the most significant end)
• write 1 hex digit for each group.
e.g.: (1010111011)2 to ( )16
10 1011 1011
2 BB
Answer = (2BB)16
Hexadecimal to Binary
• For each of the Hex digit write its binary equivalent (use 4 bits to
represent).
e.g.: (25A0)16 to ( )2
2 5 A 0
0010
0101 1010
0000
Answer = (0010010110100000)2
• Steps:
1.Convert octal number to its binary equivalent
2.Convert binary number to its hexadecimal equivalent
e.g.: (635.27)8 to ( )16
1
6 3 5 . 2 7
110 011 101 . 010 111000 00
1 9 D . 5 C
Octal to Hexadecimal
• Steps:
1.Convert hexadecimal number to its binary equivalent
2.Convert binary number to its octal equivalent
e.g.:
1
Hexadecimal to Octal
A 3 B . 7
1010 0011 1011 . 0111 00
5 0 7 3 . 3 4
Any Base to Decimal
Converting from any base to decimal is done by multiplying
each digit by its weight and summing.
e.g.:
Binary to Decimal
1011.112 = (1x23 ) + (0x22 ) + (1x21 ) + (1x20) + (1x2-1) + (1x2-2)
= 8 + 0 + 2 + 1 + 0.5 + 0.25
= 11.7510
Decimal to Any Base
Steps:
1. Convert integer part
( Successive Division Method )
2. Convert fractional part
( Successive Multiplication Method )
Steps in Successive Division Method
1. Divide the integer part of decimal number by desired
base number, store quotient (Q) and remainder (R)
2. Consider quotient as a new decimal number and
repeat step1 until quotient becomes 0
3. List the remainders in the reverse order
Steps in Successive Multiplication Method
1. Multiply the fractional part of decimal number by
desired base number
2. Record the integer part of product as carry and
fractional part as new fractional part
3. Repeat steps 1 and 2 until fractional part of product
becomes 0 or until you have many digits as necessary
for your application
4. Read carries downwards to get desired base number
e.g.: (125)10 to ( )2
Answer : (1111101)2
1’s Complement
The 1’s complement of a binary number is the number
that results when we change all 1’s to zeros and the zeros
to ones.
1 1 0 1 0 0 1 0
NOT OPEARATION
0 0 1 0 1 1 0 1
2’s Complement
The 2’s complement the binary number that results when
add 1 to the 1’s complement. It’s given as,
2’s complement = 1’s complement + 1
•The 2’s complement form is used to represent negative
numbers.
Example: Express 35 in 8-bit 2’s complement form.
Solution:
35 in 8-bit form is 00100011
0 0 1 0 0 0 1 1
1 1 0 1 1 1 0 0
+ 1
--------------------
1 1 0 1 1 1 0 1
9’s Complement
The nines' complement of a decimal digit is the number
that must be added to it to produce 9. The complement of
3 is 6, the complement of 7 is 2.
Example: Obtain 9’s complement of 7493
Solution:
9 9 9 9
- 7 4 9 3
--------
2 5 0 6 9’s complement
10’s Complement
The 10’s complement of the given number is obtained by
adding 1 to the 9’s complement. It is given as,
10’s complement = 9’s complement + 1
Example: Obtain 10’s complement of 7493
Solution:
9 9 9 9 2 5 0 6
- 7 4 9 3 + 1
-------- ----------
2 5 0 6 2 5 0 7 10’s complement
Binary Addition
The addition consists of four possible elementary
operations:
Sr no. Operations
0. 0+0=0
1. 0+1=1
2. 1+0=1
3. 1+1=10 (0 with carry of 1)
In the last case, sum is of two digits: Higher Significant bit
is called Carry and lower significant bit is called Sum.
Binary Addition
e.g.:
1 1 0 0
+ 0 1 1 0
1 0 0 1 0
Carry
The subtraction consists of four possible elementary
operations:
Binary Subtraction
In case of second operation the minuend bit is smaller
than the subtrahend bit, hence 1 is borrowed.
Sr no. Operations
0. 0-0=0
1. 0-1=1(borrow 1)
2. 1-0=1
3. 1-1=0
Binary Subtraction
e.g.:
0 1 0 1
- 0 1 1 0
1 1 1 1
Binary Multiplication
Rules for Binary Multiplication are:
Sr no. Operations
0. 0*0=0
1. 0*1=0
2. 1*0=0
3. 1*1=1
e.g.: Multiply 110 by 10
1 1 0
* 1 0
0 0 0
+ 1 1 0 0
1 1 0 0
Binary Division
Rules for Binary Division are:
Sr no. Operations
0. 0/0=0
1. 1/0=0
2. 0/1=0
3. 1/1=1
e.g.: Divide 110 by 10
1 1
1 0 1 1 0
1 0
0 1 0
1 0
0 0
REFERENCES
1. “Digital Electronics” By A.P.Godse and Dr.D.A.Godse
2. “Digital Electronics” By A.Anandkumar

More Related Content

What's hot (20)

PPTX
Bcd
Talha Fazal
 
PDF
Encoder & Decoder
Syed Saeed
 
PDF
Sequential circuits in Digital Electronics
Vinoth Loganathan
 
PPT
Half adder & full adder
Gaditek
 
PPTX
Adder ppt
Avinash Jadhav
 
PDF
Ripple counter
chandkec
 
PPT
Sequential Logic Circuit
Ramasubbu .P
 
PPTX
Latches and flip flop
Shuaib Hotak
 
PPTX
MULTIPLEXER
Siddhi Shrivas
 
PPTX
1s and 2s complement
Then Murugeshwari
 
PPTX
Bcd to excess 3 code converter
Ushaswini Chowdary
 
PPTX
1's and 2's complement
Shiraz Azeem
 
PPTX
latches
Unsa Shakir
 
PPT
adder and subtractor
Unsa Shakir
 
PPT
Digital logic design part1
Vaagdevi College of Engineering
 
PPTX
Counters
Ketaki_Pattani
 
PDF
What is bcd number system
Muhammad Shahid
 
PPTX
Basics of digital electronics
shalet kochumuttath Shaji
 
PPT
1’s and 2’s complements
arunachalamr16
 
PPTX
3.codes( binary code ,excess 3, gray code )
MdFazleRabbi18
 
Encoder & Decoder
Syed Saeed
 
Sequential circuits in Digital Electronics
Vinoth Loganathan
 
Half adder & full adder
Gaditek
 
Adder ppt
Avinash Jadhav
 
Ripple counter
chandkec
 
Sequential Logic Circuit
Ramasubbu .P
 
Latches and flip flop
Shuaib Hotak
 
MULTIPLEXER
Siddhi Shrivas
 
1s and 2s complement
Then Murugeshwari
 
Bcd to excess 3 code converter
Ushaswini Chowdary
 
1's and 2's complement
Shiraz Azeem
 
latches
Unsa Shakir
 
adder and subtractor
Unsa Shakir
 
Digital logic design part1
Vaagdevi College of Engineering
 
Counters
Ketaki_Pattani
 
What is bcd number system
Muhammad Shahid
 
Basics of digital electronics
shalet kochumuttath Shaji
 
1’s and 2’s complements
arunachalamr16
 
3.codes( binary code ,excess 3, gray code )
MdFazleRabbi18
 

Similar to Number system in Digital Electronics (20)

PPTX
Digital Electronics: UNIT-I DIGITAL FUNDAMENTALS
Sridhar191373
 
PPTX
UNIT - I.pptx
amudhak10
 
PPTX
UNIT - I.pptx
amudhak10
 
PDF
Digital Logic
NabeelaNousheen
 
PDF
Chapter 1 digital systems and binary numbers
Mohammad Bashartullah
 
PDF
Module 1 Digital Logic Design .pptx.pdf
tweetya25
 
PPTX
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
Surendra Loya
 
PPTX
Switching Theory and Logic Circuits-LEC.pptx
JonathanCasilla3
 
PPT
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
TMaungLwin
 
PPTX
Number_system_B.pharm_2nd_BP205T_Unit_1_Ravi.pptx
ravisharma3100
 
PDF
digital-electronics (1)_watermark.pdfhindi
NikhilPant15
 
PPTX
digital-electronics.pptx
sulekhasaxena2
 
PPTX
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
Vedika Narvekar
 
PPTX
Data representation
Chew Hoong
 
PPTX
Number system
SIVALAKSHMIPANNEERSE
 
PPT
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
TMaungLwin
 
PPT
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
TMaungLwin
 
PDF
DLC Unit 1 (1).pdf nothing to say about you
rshyamprakash2004
 
PPTX
ADE UNIT-III (Digital Fundamentals).pptx
KUMARS641064
 
PPT
45196656565656565656565656565656565656566.ppt
Harshal Vaidya
 
Digital Electronics: UNIT-I DIGITAL FUNDAMENTALS
Sridhar191373
 
UNIT - I.pptx
amudhak10
 
UNIT - I.pptx
amudhak10
 
Digital Logic
NabeelaNousheen
 
Chapter 1 digital systems and binary numbers
Mohammad Bashartullah
 
Module 1 Digital Logic Design .pptx.pdf
tweetya25
 
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
Surendra Loya
 
Switching Theory and Logic Circuits-LEC.pptx
JonathanCasilla3
 
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
TMaungLwin
 
Number_system_B.pharm_2nd_BP205T_Unit_1_Ravi.pptx
ravisharma3100
 
digital-electronics (1)_watermark.pdfhindi
NikhilPant15
 
digital-electronics.pptx
sulekhasaxena2
 
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
Vedika Narvekar
 
Data representation
Chew Hoong
 
Number system
SIVALAKSHMIPANNEERSE
 
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
TMaungLwin
 
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
TMaungLwin
 
DLC Unit 1 (1).pdf nothing to say about you
rshyamprakash2004
 
ADE UNIT-III (Digital Fundamentals).pptx
KUMARS641064
 
45196656565656565656565656565656565656566.ppt
Harshal Vaidya
 
Ad

More from Janki Shah (9)

PPTX
Collections in .net technology (2160711)
Janki Shah
 
PPTX
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Janki Shah
 
PPTX
File Management in Operating System
Janki Shah
 
PPT
Addressing in Computer Networks
Janki Shah
 
PPTX
Concurrency Control in Database Management System
Janki Shah
 
PPTX
Queue in Data Structure
Janki Shah
 
PPTX
Exception Handling in object oriented programming using C++
Janki Shah
 
PPTX
Compiler in System Programming/Code Optimization techniques in System Program...
Janki Shah
 
PPT
Sorting in Linear Time in Analysis & Design of Algorithm
Janki Shah
 
Collections in .net technology (2160711)
Janki Shah
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Janki Shah
 
File Management in Operating System
Janki Shah
 
Addressing in Computer Networks
Janki Shah
 
Concurrency Control in Database Management System
Janki Shah
 
Queue in Data Structure
Janki Shah
 
Exception Handling in object oriented programming using C++
Janki Shah
 
Compiler in System Programming/Code Optimization techniques in System Program...
Janki Shah
 
Sorting in Linear Time in Analysis & Design of Algorithm
Janki Shah
 
Ad

Recently uploaded (20)

PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PPTX
Depth First Search Algorithm in 🧠 DFS in Artificial Intelligence (AI)
rafeeqshaik212002
 
PDF
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PPTX
GitOps_Without_K8s_Training simple one without k8s
DanialHabibi2
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPT
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
PDF
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PDF
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Thermal runway and thermal stability.pptx
godow93766
 
Depth First Search Algorithm in 🧠 DFS in Artificial Intelligence (AI)
rafeeqshaik212002
 
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
GitOps_Without_K8s_Training simple one without k8s
DanialHabibi2
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
Design Thinking basics for Engineers.pdf
CMR University
 
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
Introduction to Design of Machine Elements
PradeepKumarS27
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 

Number system in Digital Electronics

  • 2. CONTENTS Number System Representation of Numbers of Different Radix Conversion of Numbers from one Radix to Another Radix Complement of Number Binary Arithmetic
  • 3. What is Number System ? •A system for representing number of certain type. • Example: –There are several systems for representing the –counting numbers. – These include the usual base “10” or decimal system : 1,2,3 ,…..10,11,12,..99,100,…
  • 4. System Base Symbols Used by humans? Used in computers? Decimal 10 0, 1, … 9 Yes No Binary 2 0, 1 No Yes Octal 8 0, 1, … 7 No No Hexa- decimal 16 0, 1, … 9, A, B, … F No No Common Number System
  • 5. Decimal Binary Octal Hexa- decimal 0 0 0 0 1 1 1 1 2 10 2 2 3 11 3 3 4 100 4 4 5 101 5 5 6 110 6 6 7 111 7 7 Counting
  • 6. Counting Decimal Binary Octal Hexa- decimal 8 1000 10 8 9 1001 11 9 10 1010 12 A 11 1011 13 B 12 1100 14 C 13 1101 15 D 14 1110 16 E 15 1111 17 F
  • 8. •Group into 3's starting at least significant symbol (if the number of bits is not evenly divisible by 3, then add 0's at the most significant end) • write 1 octal digit for each group e.g.: (1010101)2 to ( )8 001 010 101 1 2 5 Answer = 1258 Binary to Octal
  • 9. •For each of the Octal digit write its binary equivalent e.g.: (257)8 to ( )2 Answer = (010101111)2 Octal to Binary 2 5 7 010 101 111
  • 10. Binary to Hexadecimal • Group into 4's starting at least significant symbol (if the number of bits is not evenly divisible by 4, then add 0's at the most significant end) • write 1 hex digit for each group. e.g.: (1010111011)2 to ( )16 10 1011 1011 2 BB Answer = (2BB)16
  • 11. Hexadecimal to Binary • For each of the Hex digit write its binary equivalent (use 4 bits to represent). e.g.: (25A0)16 to ( )2 2 5 A 0 0010 0101 1010 0000 Answer = (0010010110100000)2
  • 12. • Steps: 1.Convert octal number to its binary equivalent 2.Convert binary number to its hexadecimal equivalent e.g.: (635.27)8 to ( )16 1 6 3 5 . 2 7 110 011 101 . 010 111000 00 1 9 D . 5 C Octal to Hexadecimal
  • 13. • Steps: 1.Convert hexadecimal number to its binary equivalent 2.Convert binary number to its octal equivalent e.g.: 1 Hexadecimal to Octal A 3 B . 7 1010 0011 1011 . 0111 00 5 0 7 3 . 3 4
  • 14. Any Base to Decimal Converting from any base to decimal is done by multiplying each digit by its weight and summing. e.g.: Binary to Decimal 1011.112 = (1x23 ) + (0x22 ) + (1x21 ) + (1x20) + (1x2-1) + (1x2-2) = 8 + 0 + 2 + 1 + 0.5 + 0.25 = 11.7510
  • 15. Decimal to Any Base Steps: 1. Convert integer part ( Successive Division Method ) 2. Convert fractional part ( Successive Multiplication Method )
  • 16. Steps in Successive Division Method 1. Divide the integer part of decimal number by desired base number, store quotient (Q) and remainder (R) 2. Consider quotient as a new decimal number and repeat step1 until quotient becomes 0 3. List the remainders in the reverse order Steps in Successive Multiplication Method 1. Multiply the fractional part of decimal number by desired base number 2. Record the integer part of product as carry and fractional part as new fractional part 3. Repeat steps 1 and 2 until fractional part of product becomes 0 or until you have many digits as necessary for your application 4. Read carries downwards to get desired base number
  • 17. e.g.: (125)10 to ( )2 Answer : (1111101)2
  • 18. 1’s Complement The 1’s complement of a binary number is the number that results when we change all 1’s to zeros and the zeros to ones. 1 1 0 1 0 0 1 0 NOT OPEARATION 0 0 1 0 1 1 0 1
  • 19. 2’s Complement The 2’s complement the binary number that results when add 1 to the 1’s complement. It’s given as, 2’s complement = 1’s complement + 1 •The 2’s complement form is used to represent negative numbers. Example: Express 35 in 8-bit 2’s complement form. Solution: 35 in 8-bit form is 00100011 0 0 1 0 0 0 1 1 1 1 0 1 1 1 0 0 + 1 -------------------- 1 1 0 1 1 1 0 1
  • 20. 9’s Complement The nines' complement of a decimal digit is the number that must be added to it to produce 9. The complement of 3 is 6, the complement of 7 is 2. Example: Obtain 9’s complement of 7493 Solution: 9 9 9 9 - 7 4 9 3 -------- 2 5 0 6 9’s complement
  • 21. 10’s Complement The 10’s complement of the given number is obtained by adding 1 to the 9’s complement. It is given as, 10’s complement = 9’s complement + 1 Example: Obtain 10’s complement of 7493 Solution: 9 9 9 9 2 5 0 6 - 7 4 9 3 + 1 -------- ---------- 2 5 0 6 2 5 0 7 10’s complement
  • 22. Binary Addition The addition consists of four possible elementary operations: Sr no. Operations 0. 0+0=0 1. 0+1=1 2. 1+0=1 3. 1+1=10 (0 with carry of 1) In the last case, sum is of two digits: Higher Significant bit is called Carry and lower significant bit is called Sum.
  • 23. Binary Addition e.g.: 1 1 0 0 + 0 1 1 0 1 0 0 1 0 Carry
  • 24. The subtraction consists of four possible elementary operations: Binary Subtraction In case of second operation the minuend bit is smaller than the subtrahend bit, hence 1 is borrowed. Sr no. Operations 0. 0-0=0 1. 0-1=1(borrow 1) 2. 1-0=1 3. 1-1=0
  • 25. Binary Subtraction e.g.: 0 1 0 1 - 0 1 1 0 1 1 1 1
  • 26. Binary Multiplication Rules for Binary Multiplication are: Sr no. Operations 0. 0*0=0 1. 0*1=0 2. 1*0=0 3. 1*1=1 e.g.: Multiply 110 by 10 1 1 0 * 1 0 0 0 0 + 1 1 0 0 1 1 0 0
  • 27. Binary Division Rules for Binary Division are: Sr no. Operations 0. 0/0=0 1. 1/0=0 2. 0/1=0 3. 1/1=1 e.g.: Divide 110 by 10 1 1 1 0 1 1 0 1 0 0 1 0 1 0 0 0
  • 28. REFERENCES 1. “Digital Electronics” By A.P.Godse and Dr.D.A.Godse 2. “Digital Electronics” By A.Anandkumar