SlideShare a Scribd company logo
1 of 23
CLICK HERE
LOADING…….
HEXADECIMAL



 CHOOSE
YOUR TOPIC
CHOOSE
                   YOUR TOPIC
                                Decimal to
Binary to                         Binary
Decimal



            CONVERTING




             Binary to
            Hexadecimal

                                     MAIN MENU
CHOOSE
                    YOUR TOPIC

                                   OR GATE
AND GATE




           LOGIC OPERATIONS




ADDITION                         SUBRACTION



                                       MAIN MENU
LOGIC
MAIN MENU   CONVERTING               EXIT
                         OPERATION
LOGIC
MAIN MENU   CONVERTING                            EXIT
                             OPERATION




                         CLICK HERE TO 2’COMPLIMENT
LOGIC
MAIN MENU   CONVERTING               EXIT
                         OPERATION
LOGIC
MAIN MENU            CONVERTING                         EXIT
                                  OPERATION



                                                           n 2n
          Most                               Least             0 1
       significant                        significant          1 2
                                                               2 4
                                                               3 8
                                                               4 16
                                                               5 32
                                                               6 64
                                                               7 128
                                                               8 256
                                                               9 512
    23                                           20        10 1024
                        22        21
23                       20
               22   21




23        22             21        20

4         2

6                                       BACK TO
                                    CONVERTING MENU
LOGIC
MAIN MENU   CONVERTING                 EXIT
                         OPERATION




                                     READ FROM
                                     DOWN TO UP
LOGIC
MAIN MENU   CONVERTING               EXIT
                         OPERATION
LOGIC
MAIN MENU   CONVERTING               EXIT
                         OPERATION
LOGIC
MAIN MENU   CONVERTING               EXIT
                         OPERATION
with zero = no change
with one = 1
with zero = 0
with one = no change
LOGIC
    MAIN MENU     CONVERTING                       EXIT
                                   OPERATION




                     HEXADECIMAL NOTATION



• It is often convenient to write binary (base-2)
  numbers
  as hexadecimal (base-16) numbers instead.
  – fewer digits -- four bits per hex digit
  – less error prone -- easy to corrupt long string of 1’s
    and 0’s
LOGIC
MAIN MENU         CONVERTING                          EXIT
                                   OPERATION



                      HEXADECIMAL NOTATION


Binary      Hex     Decimal      Binary        Hex   Decimal
 0000        0         0          1000          8       8

 0001        1         1          1001          9       9

 0010        2         2          1010          A      10

 0011        3         3          1011          B      11

 0100        4         4          1100          C      12

 0101        5         5          1101          D      13

 0110        6         6          1110          E      14

 0111        7         7          1111          F      15
LOGIC
MAIN MENU       CONVERTING                     EXIT
                                   OPERATION


                   HEXADECIMAL NOTATION




        1101        0001           1010
        1111

            D       1          A          F
FLOATING POINT


• Large values: 6.023 x 1023 -- requires 79 bits
• Small values: 6.626 x 10-34 -- requires >110 bits

• Use equivalent of “scientific notation”: F x 2E
• Need to represent F (fraction), E (exponent), and sign.
• IEEE 754 Floating-Point Standard (32-bits):

             1b    8b                    23b


              S   Exponent   Fraction


         N ( 1) S 1.fraction 2exponent 127 , 1 exponent 254
         N ( 1) S 0.fraction 2 126 , exponent 0
LOGIC
MAIN MENU      CONVERTING                         EXIT
                                OPERATION




How can we represent fractions?
  Use a “binary point” to separate positive
  from negative powers of two -- just like “decimal
  point.”
  2’s comp addition and subtraction still work.
      if binary points are aligned
                                2-1 = 0.5
                                2-2 = 0.25
                                2-3 = 0.125
      00101000.101 (40.625)
    + 11111110.110 (-1.25)
      00100111.011 (39.375)
FLOATING POINT


Single-precision IEEE floating point number:


 1 01111110 10000000000000000000000

 sign          exponent                   fraction
        Sign is 1 – number is negative.
        Exponent field is 01111110 = 126 (decimal).
        Fraction is 0.100000000000… = 0.5 (decimal).

   Value = -1.5 x 2(126-127) = -1.5 x 2-1 = -0.75.
   2-22
BITS,BINARY AND LOGIC

More Related Content

Viewers also liked

8.1 alogorithm & prolem solving
8.1 alogorithm & prolem solving8.1 alogorithm & prolem solving
8.1 alogorithm & prolem solving
Khan Yousafzai
 

Viewers also liked (18)

Ma3696 Lecture 3
Ma3696 Lecture 3Ma3696 Lecture 3
Ma3696 Lecture 3
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Binary Logic
Binary LogicBinary Logic
Binary Logic
 
Computer project
Computer projectComputer project
Computer project
 
Storing data ch 4
Storing data ch 4Storing data ch 4
Storing data ch 4
 
Slildeshare
SlildeshareSlildeshare
Slildeshare
 
Digital Humanities
Digital HumanitiesDigital Humanities
Digital Humanities
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Object-Oriented Programming 2
Object-Oriented Programming 2Object-Oriented Programming 2
Object-Oriented Programming 2
 
8.1 alogorithm & prolem solving
8.1 alogorithm & prolem solving8.1 alogorithm & prolem solving
8.1 alogorithm & prolem solving
 
Unit 5
Unit 5Unit 5
Unit 5
 
Python Programming Basics
Python Programming BasicsPython Programming Basics
Python Programming Basics
 
Data type
Data typeData type
Data type
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
 
Stanford splash spring 2016 basic programming
Stanford splash spring 2016 basic programmingStanford splash spring 2016 basic programming
Stanford splash spring 2016 basic programming
 
What is binary and why do we use it?
What is binary and why do we use it?What is binary and why do we use it?
What is binary and why do we use it?
 
The Basics of programming
The Basics of programmingThe Basics of programming
The Basics of programming
 

Similar to BITS,BINARY AND LOGIC (10)

Algorithm of NGS Data
Algorithm of NGS DataAlgorithm of NGS Data
Algorithm of NGS Data
 
Ee2 chapter2 arithmetic_operation
Ee2 chapter2 arithmetic_operationEe2 chapter2 arithmetic_operation
Ee2 chapter2 arithmetic_operation
 
Sistem bilangan
Sistem bilanganSistem bilangan
Sistem bilangan
 
Microcontroller base project
Microcontroller base projectMicrocontroller base project
Microcontroller base project
 
EASA Part 66 Module 5.2 : Numbering System
EASA Part 66 Module 5.2 : Numbering SystemEASA Part 66 Module 5.2 : Numbering System
EASA Part 66 Module 5.2 : Numbering System
 
Lecture.1
Lecture.1Lecture.1
Lecture.1
 
Automated static deobfuscation in the context of Reverse Engineering
Automated static deobfuscation in the context of Reverse EngineeringAutomated static deobfuscation in the context of Reverse Engineering
Automated static deobfuscation in the context of Reverse Engineering
 
06 Arithmetic 1
06 Arithmetic 106 Arithmetic 1
06 Arithmetic 1
 
Ee2 chapter1 number_system
Ee2 chapter1 number_systemEe2 chapter1 number_system
Ee2 chapter1 number_system
 
AlgoPerm2012 - 05 Ioan Todinca
AlgoPerm2012 - 05 Ioan TodincaAlgoPerm2012 - 05 Ioan Todinca
AlgoPerm2012 - 05 Ioan Todinca
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 

Recently uploaded (20)

ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 

BITS,BINARY AND LOGIC

  • 4. CHOOSE YOUR TOPIC Decimal to Binary to Binary Decimal CONVERTING Binary to Hexadecimal MAIN MENU
  • 5. CHOOSE YOUR TOPIC OR GATE AND GATE LOGIC OPERATIONS ADDITION SUBRACTION MAIN MENU
  • 6. LOGIC MAIN MENU CONVERTING EXIT OPERATION
  • 7. LOGIC MAIN MENU CONVERTING EXIT OPERATION CLICK HERE TO 2’COMPLIMENT
  • 8. LOGIC MAIN MENU CONVERTING EXIT OPERATION
  • 9. LOGIC MAIN MENU CONVERTING EXIT OPERATION n 2n Most Least 0 1 significant significant 1 2 2 4 3 8 4 16 5 32 6 64 7 128 8 256 9 512 23 20 10 1024 22 21
  • 10. 23 20 22 21 23 22 21 20 4 2 6 BACK TO CONVERTING MENU
  • 11. LOGIC MAIN MENU CONVERTING EXIT OPERATION READ FROM DOWN TO UP
  • 12. LOGIC MAIN MENU CONVERTING EXIT OPERATION
  • 13. LOGIC MAIN MENU CONVERTING EXIT OPERATION
  • 14. LOGIC MAIN MENU CONVERTING EXIT OPERATION
  • 15. with zero = no change with one = 1
  • 16. with zero = 0 with one = no change
  • 17. LOGIC MAIN MENU CONVERTING EXIT OPERATION HEXADECIMAL NOTATION • It is often convenient to write binary (base-2) numbers as hexadecimal (base-16) numbers instead. – fewer digits -- four bits per hex digit – less error prone -- easy to corrupt long string of 1’s and 0’s
  • 18. LOGIC MAIN MENU CONVERTING EXIT OPERATION HEXADECIMAL NOTATION Binary Hex Decimal Binary Hex Decimal 0000 0 0 1000 8 8 0001 1 1 1001 9 9 0010 2 2 1010 A 10 0011 3 3 1011 B 11 0100 4 4 1100 C 12 0101 5 5 1101 D 13 0110 6 6 1110 E 14 0111 7 7 1111 F 15
  • 19. LOGIC MAIN MENU CONVERTING EXIT OPERATION HEXADECIMAL NOTATION 1101 0001 1010 1111 D 1 A F
  • 20. FLOATING POINT • Large values: 6.023 x 1023 -- requires 79 bits • Small values: 6.626 x 10-34 -- requires >110 bits • Use equivalent of “scientific notation”: F x 2E • Need to represent F (fraction), E (exponent), and sign. • IEEE 754 Floating-Point Standard (32-bits): 1b 8b 23b S Exponent Fraction N ( 1) S 1.fraction 2exponent 127 , 1 exponent 254 N ( 1) S 0.fraction 2 126 , exponent 0
  • 21. LOGIC MAIN MENU CONVERTING EXIT OPERATION How can we represent fractions? Use a “binary point” to separate positive from negative powers of two -- just like “decimal point.” 2’s comp addition and subtraction still work. if binary points are aligned 2-1 = 0.5 2-2 = 0.25 2-3 = 0.125 00101000.101 (40.625) + 11111110.110 (-1.25) 00100111.011 (39.375)
  • 22. FLOATING POINT Single-precision IEEE floating point number: 1 01111110 10000000000000000000000 sign exponent fraction Sign is 1 – number is negative. Exponent field is 01111110 = 126 (decimal). Fraction is 0.100000000000… = 0.5 (decimal). Value = -1.5 x 2(126-127) = -1.5 x 2-1 = -0.75. 2-22