SlideShare a Scribd company logo
Number System
Unit II: Chapter 5
Binary Number System
•A system uses only the digits 0 and 1 as codes.
• The word ‘bit’ is the abbreviation for binary digit.
• The binary number has 4 bits i.e. 0000 or 1111 called as nibble.
• The binary number with 8 bits i.e. 00000000 or 11111111 called as
byte.
Number
System
Decimal Base
10(0-9)
Binary
Base
2(0,1)
Octal Base 8
(0-7)
Hexa
decimal
Base 16
(0-9, A – F)
Decimal Binary Octal
Hexa-
decim
al
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
Numbers Equivalent
Counting
Decimal Binary Octal
Hexa-
decim
al
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
e.g.:(125)10 to ( )2
Answer: (1111101)2
For Binary to Decimal conversion
• 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
Answer= (010101111)2
Octal to Binary
•Foreachof theOctaldigit writeitsbinaryequivalent
e.g.: (257)8to ()2
2 57
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
themostsignificantend)
•write 1 hex digit for each group.
e.g.:(1010111011)2to ()16
10 1011 1011
B
2 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)16to ()2
25A0
0010
0101 1010
0000
Answer= (0010010110100000)2
• Steps:
1.Convertoctalnumberto itsbinary equivalent
2.Convertbinarynumberto itshexadecimalequivalent
e.g.: (635.27)8 to ()16
6 3 5 . 2 7
110 011 101 . 010 111
000 00
1 9 D . 5 C
Octal to Hexadecimal
• Steps:
1.Convert hexadecimal numberto itsbinaryequivalent
2.Convertbinarynumberto itsoctalequivalent
e.g.:
Hexadecimal to Octal
A 3 B . 7
1010 0011 1011 . 0111 00
5 0 7 3 . 3 4
Any Base to Decimal
Convertingfromanybaseto decimalisdone bymultiplying
eachdigit byitsweightand summing.
e.g.:
Binaryto 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. Convertintegerpart
( SuccessiveDivisionMethod )
2. Convertfractionalpart
( SuccessiveMultiplicationMethod )
Stepsin SuccessiveDivisionMethod
1. Dividetheintegerpartof decimalnumberbydesired
basenumber,storequotient(Q) andremainder(R)
2. Consider quotient as a new decimal number
and repeatstep1untilquotientbecomes 0
3. Listtheremaindersin thereverse order
Stepsin SuccessiveMultiplicationMethod
1. Multiply the fractional part of decimal number by
desiredbasenumber
2. Record the integer part of product as carry and
fractionalpartasnewfractional part
3. Repeat steps 1 and 2 until fractional part of product
becomes0or untilyouhavemanydigitsasnecessary for
yourapplication
4. Readcarriesdownwardsto getdesiredbasenumber

More Related Content

Similar to Number System.pptx

Similar to Number System.pptx (20)

Lec 02
Lec 02Lec 02
Lec 02
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 
Okkkkk
OkkkkkOkkkkk
Okkkkk
 
01 intro
01 intro01 intro
01 intro
 
01 intro
01 intro01 intro
01 intro
 
Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptx
 
Number system
Number systemNumber system
Number system
 
Chapter1b
Chapter1bChapter1b
Chapter1b
 
Unit 4.docx
Unit 4.docxUnit 4.docx
Unit 4.docx
 
Number System.pdf
Number System.pdfNumber System.pdf
Number System.pdf
 
Data representation
Data representationData representation
Data representation
 
08 Numeral systems
08 Numeral systems08 Numeral systems
08 Numeral systems
 
Binary octal
Binary octalBinary octal
Binary octal
 
Number system
Number system Number system
Number system
 
Number Systems - AK.pptx
Number Systems - AK.pptxNumber Systems - AK.pptx
Number Systems - AK.pptx
 
Number system
Number systemNumber system
Number system
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 

Recently uploaded

一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单yhkoc
 
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...Domenico Conte
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单ocavb
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundOppotus
 
Jpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization SampleJpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization SampleJames Polillo
 
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictSupply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictJack Cole
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单enxupq
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单ewymefz
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单ewymefz
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单ewymefz
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单vcaxypu
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单ewymefz
 
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...correoyaya
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhArpitMalhotra16
 
Computer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage sComputer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage sMAQIB18
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .NABLAS株式会社
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatheahmadsaood
 
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...elinavihriala
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单nscud
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单nscud
 

Recently uploaded (20)

一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
 
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
Jpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization SampleJpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization Sample
 
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictSupply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
 
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
Computer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage sComputer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage s
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
 
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
 

Number System.pptx

  • 2. Binary Number System •A system uses only the digits 0 and 1 as codes. • The word ‘bit’ is the abbreviation for binary digit. • The binary number has 4 bits i.e. 0000 or 1111 called as nibble. • The binary number with 8 bits i.e. 00000000 or 11111111 called as byte.
  • 3. Number System Decimal Base 10(0-9) Binary Base 2(0,1) Octal Base 8 (0-7) Hexa decimal Base 16 (0-9, A – F)
  • 4. Decimal Binary Octal Hexa- decim al 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 Numbers Equivalent
  • 5. Counting Decimal Binary Octal Hexa- decim al 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
  • 7. e.g.:(125)10 to ( )2 Answer: (1111101)2
  • 8.
  • 9. For Binary to Decimal conversion
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15. • 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
  • 16. Answer= (010101111)2 Octal to Binary •Foreachof theOctaldigit writeitsbinaryequivalent e.g.: (257)8to ()2 2 57 010 101 111
  • 17. 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 themostsignificantend) •write 1 hex digit for each group. e.g.:(1010111011)2to ()16 10 1011 1011 B 2 B Answer= (2BB)16
  • 18. Hexadecimal to Binary • For each of the Hex digit write its binary equivalent (use 4 bits to represent). e.g.: (25A0)16to ()2 25A0 0010 0101 1010 0000 Answer= (0010010110100000)2
  • 19. • Steps: 1.Convertoctalnumberto itsbinary equivalent 2.Convertbinarynumberto itshexadecimalequivalent e.g.: (635.27)8 to ()16 6 3 5 . 2 7 110 011 101 . 010 111 000 00 1 9 D . 5 C Octal to Hexadecimal
  • 20. • Steps: 1.Convert hexadecimal numberto itsbinaryequivalent 2.Convertbinarynumberto itsoctalequivalent e.g.: Hexadecimal to Octal A 3 B . 7 1010 0011 1011 . 0111 00 5 0 7 3 . 3 4
  • 21. Any Base to Decimal Convertingfromanybaseto decimalisdone bymultiplying eachdigit byitsweightand summing. e.g.: Binaryto Decimal 1011.112 = (1x23 ) + (0x22 )+ (1x21 ) + (1x20)+ (1x2-1) + (1x2-2) = 8 + 0 + 2 + 1 + 0.5 + 0.25 = 11.7510
  • 22. Decimal to Any Base Steps: 1. Convertintegerpart ( SuccessiveDivisionMethod ) 2. Convertfractionalpart ( SuccessiveMultiplicationMethod )
  • 23. Stepsin SuccessiveDivisionMethod 1. Dividetheintegerpartof decimalnumberbydesired basenumber,storequotient(Q) andremainder(R) 2. Consider quotient as a new decimal number and repeatstep1untilquotientbecomes 0 3. Listtheremaindersin thereverse order Stepsin SuccessiveMultiplicationMethod 1. Multiply the fractional part of decimal number by desiredbasenumber 2. Record the integer part of product as carry and fractionalpartasnewfractional part 3. Repeat steps 1 and 2 until fractional part of product becomes0or untilyouhavemanydigitsasnecessary for yourapplication 4. Readcarriesdownwardsto getdesiredbasenumber