SlideShare a Scribd company logo
1 of 28
Download to read offline
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 B
B
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 111
000 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

Similar to uyuyuy.pdf (20)

ch2.pdf
ch2.pdfch2.pdf
ch2.pdf
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
Number system
Number systemNumber system
Number system
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Data representation
Data representationData representation
Data representation
 
data representation
 data representation data representation
data representation
 
Data Representation
Data RepresentationData Representation
Data Representation
 
LCDF3_Chap_01x.pptx
LCDF3_Chap_01x.pptxLCDF3_Chap_01x.pptx
LCDF3_Chap_01x.pptx
 
Alu1
Alu1Alu1
Alu1
 
Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdf
 
Number system
Number systemNumber system
Number system
 
digital systems and information
digital systems and informationdigital systems and information
digital systems and information
 
Representation Of Numbers and Characters
Representation Of Numbers and CharactersRepresentation Of Numbers and Characters
Representation Of Numbers and Characters
 

More from MariaJoseph591921

The best Mland deep learning for beginners to understand more abot the conten...
The best Mland deep learning for beginners to understand more abot the conten...The best Mland deep learning for beginners to understand more abot the conten...
The best Mland deep learning for beginners to understand more abot the conten...MariaJoseph591921
 
Machine_Learning_for_Data_Science_Projects_Badge20240105-29-8uz8sb.pdf
Machine_Learning_for_Data_Science_Projects_Badge20240105-29-8uz8sb.pdfMachine_Learning_for_Data_Science_Projects_Badge20240105-29-8uz8sb.pdf
Machine_Learning_for_Data_Science_Projects_Badge20240105-29-8uz8sb.pdfMariaJoseph591921
 
Code conversions.pptx415.pptx
Code conversions.pptx415.pptxCode conversions.pptx415.pptx
Code conversions.pptx415.pptxMariaJoseph591921
 
numbersystem-171028183820.pptx
numbersystem-171028183820.pptxnumbersystem-171028183820.pptx
numbersystem-171028183820.pptxMariaJoseph591921
 

More from MariaJoseph591921 (7)

The best Mland deep learning for beginners to understand more abot the conten...
The best Mland deep learning for beginners to understand more abot the conten...The best Mland deep learning for beginners to understand more abot the conten...
The best Mland deep learning for beginners to understand more abot the conten...
 
Machine_Learning_for_Data_Science_Projects_Badge20240105-29-8uz8sb.pdf
Machine_Learning_for_Data_Science_Projects_Badge20240105-29-8uz8sb.pdfMachine_Learning_for_Data_Science_Projects_Badge20240105-29-8uz8sb.pdf
Machine_Learning_for_Data_Science_Projects_Badge20240105-29-8uz8sb.pdf
 
FOURIER__ANALYSIS,[1].pptx
FOURIER__ANALYSIS,[1].pptxFOURIER__ANALYSIS,[1].pptx
FOURIER__ANALYSIS,[1].pptx
 
BLDC_868_v52.ppt
BLDC_868_v52.pptBLDC_868_v52.ppt
BLDC_868_v52.ppt
 
Code conversions.pptx415.pptx
Code conversions.pptx415.pptxCode conversions.pptx415.pptx
Code conversions.pptx415.pptx
 
numbersystem-171028183820.pptx
numbersystem-171028183820.pptxnumbersystem-171028183820.pptx
numbersystem-171028183820.pptx
 
Unit_4_part_1.pdf
Unit_4_part_1.pdfUnit_4_part_1.pdf
Unit_4_part_1.pdf
 

Recently uploaded

(Call Girls) in Lucknow Real photos of Female Escorts 👩🏼‍❤️‍💋‍👩🏻 8923113531 ➝...
(Call Girls) in Lucknow Real photos of Female Escorts 👩🏼‍❤️‍💋‍👩🏻 8923113531 ➝...(Call Girls) in Lucknow Real photos of Female Escorts 👩🏼‍❤️‍💋‍👩🏻 8923113531 ➝...
(Call Girls) in Lucknow Real photos of Female Escorts 👩🏼‍❤️‍💋‍👩🏻 8923113531 ➝...gurkirankumar98700
 
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样umasea
 
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girls
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call GirlsDelhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girls
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girlsshivangimorya083
 
NPPE STUDY GUIDE - NOV2021_study_104040.pdf
NPPE STUDY GUIDE - NOV2021_study_104040.pdfNPPE STUDY GUIDE - NOV2021_study_104040.pdf
NPPE STUDY GUIDE - NOV2021_study_104040.pdfDivyeshPatel234692
 
VIP Russian Call Girls in Bhilai Deepika 8250192130 Independent Escort Servic...
VIP Russian Call Girls in Bhilai Deepika 8250192130 Independent Escort Servic...VIP Russian Call Girls in Bhilai Deepika 8250192130 Independent Escort Servic...
VIP Russian Call Girls in Bhilai Deepika 8250192130 Independent Escort Servic...Suhani Kapoor
 
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...Suhani Kapoor
 
定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一
 定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一 定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一
定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一Fs sss
 
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳anilsa9823
 
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfExperience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfSoham Mondal
 
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...Suhani Kapoor
 
PM Job Search Council Info Session - PMI Silver Spring Chapter
PM Job Search Council Info Session - PMI Silver Spring ChapterPM Job Search Council Info Session - PMI Silver Spring Chapter
PM Job Search Council Info Session - PMI Silver Spring ChapterHector Del Castillo, CPM, CPMM
 
Call Girls In Bhikaji Cama Place 24/7✡️9711147426✡️ Escorts Service
Call Girls In Bhikaji Cama Place 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Bhikaji Cama Place 24/7✡️9711147426✡️ Escorts Service
Call Girls In Bhikaji Cama Place 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
Employee of the Month - Samsung Semiconductor India Research
Employee of the Month - Samsung Semiconductor India ResearchEmployee of the Month - Samsung Semiconductor India Research
Employee of the Month - Samsung Semiconductor India ResearchSoham Mondal
 
do's and don'ts in Telephone Interview of Job
do's and don'ts in Telephone Interview of Jobdo's and don'ts in Telephone Interview of Job
do's and don'ts in Telephone Interview of JobRemote DBA Services
 
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证obuhobo
 
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service BhilaiVIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士obuhobo
 
The Impact of Socioeconomic Status on Education.pdf
The Impact of Socioeconomic Status on Education.pdfThe Impact of Socioeconomic Status on Education.pdf
The Impact of Socioeconomic Status on Education.pdftheknowledgereview1
 
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceanilsa9823
 

Recently uploaded (20)

(Call Girls) in Lucknow Real photos of Female Escorts 👩🏼‍❤️‍💋‍👩🏻 8923113531 ➝...
(Call Girls) in Lucknow Real photos of Female Escorts 👩🏼‍❤️‍💋‍👩🏻 8923113531 ➝...(Call Girls) in Lucknow Real photos of Female Escorts 👩🏼‍❤️‍💋‍👩🏻 8923113531 ➝...
(Call Girls) in Lucknow Real photos of Female Escorts 👩🏼‍❤️‍💋‍👩🏻 8923113531 ➝...
 
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样
 
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girls
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call GirlsDelhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girls
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girls
 
NPPE STUDY GUIDE - NOV2021_study_104040.pdf
NPPE STUDY GUIDE - NOV2021_study_104040.pdfNPPE STUDY GUIDE - NOV2021_study_104040.pdf
NPPE STUDY GUIDE - NOV2021_study_104040.pdf
 
VIP Russian Call Girls in Bhilai Deepika 8250192130 Independent Escort Servic...
VIP Russian Call Girls in Bhilai Deepika 8250192130 Independent Escort Servic...VIP Russian Call Girls in Bhilai Deepika 8250192130 Independent Escort Servic...
VIP Russian Call Girls in Bhilai Deepika 8250192130 Independent Escort Servic...
 
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
 
定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一
 定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一 定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一
定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一
 
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
 
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfExperience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
 
FULL ENJOY Call Girls In Gautam Nagar (Delhi) Call Us 9953056974
FULL ENJOY Call Girls In Gautam Nagar (Delhi) Call Us 9953056974FULL ENJOY Call Girls In Gautam Nagar (Delhi) Call Us 9953056974
FULL ENJOY Call Girls In Gautam Nagar (Delhi) Call Us 9953056974
 
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
 
PM Job Search Council Info Session - PMI Silver Spring Chapter
PM Job Search Council Info Session - PMI Silver Spring ChapterPM Job Search Council Info Session - PMI Silver Spring Chapter
PM Job Search Council Info Session - PMI Silver Spring Chapter
 
Call Girls In Bhikaji Cama Place 24/7✡️9711147426✡️ Escorts Service
Call Girls In Bhikaji Cama Place 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Bhikaji Cama Place 24/7✡️9711147426✡️ Escorts Service
Call Girls In Bhikaji Cama Place 24/7✡️9711147426✡️ Escorts Service
 
Employee of the Month - Samsung Semiconductor India Research
Employee of the Month - Samsung Semiconductor India ResearchEmployee of the Month - Samsung Semiconductor India Research
Employee of the Month - Samsung Semiconductor India Research
 
do's and don'ts in Telephone Interview of Job
do's and don'ts in Telephone Interview of Jobdo's and don'ts in Telephone Interview of Job
do's and don'ts in Telephone Interview of Job
 
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
 
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service BhilaiVIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
 
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
 
The Impact of Socioeconomic Status on Education.pdf
The Impact of Socioeconomic Status on Education.pdfThe Impact of Socioeconomic Status on Education.pdf
The Impact of Socioeconomic Status on Education.pdf
 
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
 

uyuyuy.pdf

  • 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 B B 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 111 000 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