Monika Gope Lecturer IICT, KUET

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Adders Used to perform addition, subtraction, multiplication, and division (sometimes) Half-adder adds rightmost (least significant) bit Full-adder.
1
& dding ubtracting ractions.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Principles & Applications
Chapter 2 Fractions.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
Fast Algorithms for Finding Nearest Common Ancestors Dov Harel and Robert Endre Tarjan Fast Algorithms for Finding Nearest Common Ancestors SIAM J. COMPUT.
We need a common denominator to add these fractions.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 10 second questions
8 October 2013Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Solve Multi-step Equations
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Order of Operations Lesson
Break Time Remaining 10:00.
PP Test Review Sections 6-1 to 6-6
Digital Lessons on Factoring
Discrete Mathematical Structures: Theory and Applications
Digital Systems Introduction Binary Quantities and Variables
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
VOORBLAD.
Binary Values and Number Systems
Factors, Prime Numbers & Composite Numbers
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
Sets Sets © 2005 Richard A. Medeiros next Patterns.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Binary Lesson 3 Hexadecimal. Counting to 15 Base Base Base 16 Base Base Base 16 Two Ten (Hex) Two Ten (Hex)
Binary Lesson 3 Hexadecimal. Counting to 15 Base Base Base 16 Base Base Base 16 Two Ten (Hex) Two Ten (Hex)
25 seconds left…...
Digital Logic & Design Lecture No. 3. Number System Conversion Conversion between binary and octal can be carried out by inspection.  Each octal digit.
Equal or Not. Equal or Not
U1A L1 Examples FACTORING REVIEW EXAMPLES.
Factors Terminology: 3  4 =12
Januar MDMDFSSMDMDFSSS
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Converting a Fraction to %
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Energy Generation in Mitochondria and Chlorplasts
and M-ary Quadrature Amplitude Modulation (M-QAM)
Binary, Hexadecimal, and Base 10.
1/15/2015 Slide # 1 Binary, Octal and Hex Numbers Copyright Thaddeus Konar Introduction to Binary, Octal and Hexadecimal Numbers Thaddeus Konar.
Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue.
The Logic of Compound Statements
Number systems, Operations, and Codes
Presentation transcript:

Monika Gope Lecturer IICT, KUET Number System… Monika Gope Lecturer IICT, KUET

Inside The Computer 3/31/2017

Decimal to Binary Technique 1: 3/31/2017 Step 1

Decimal to Binary Technique 1: 3/31/2017 Step 2

Decimal to Binary Technique 1: 3/31/2017 Steps

Decimal to Binary Technique 1: 3/31/2017 Steps

Decimal to Binary Technique 2: 3/31/2017 Step 1

Decimal to Binary Technique 2: 3/31/2017 Step 2

Decimal to Binary Technique 2: 3/31/2017 Step 3

Decimal to Binary Technique 2: 3/31/2017 Step 4

Decimal to Binary Technique 2: 3/31/2017 Step 5

Decimal to Binary Technique 2: 3/31/2017 Step 6

Decimal to Binary Technique 2: 3/31/2017 Step 7

Decimal to Binary Technique 2: 3/31/2017 Step 8

Decimal to Binary Technique 2: 3/31/2017 Step 9

Binary to Decimal Technique 1: 3/31/2017 Step 1

Binary to Decimal Technique 1: 3/31/2017 Step 2

Binary to Decimal Technique 1: 3/31/2017 Step 3

Binary to Decimal Technique 1: 3/31/2017 Step 4

Binary to Decimal Technique 1: 3/31/2017 Step 5

Binary to Decimal Technique 2: 3/31/2017 Step 1

Binary to Decimal Technique 2: 3/31/2017 Step 2

Binary to Decimal Technique 2: 3/31/2017 Step 3

Binary to Decimal Technique 2: 3/31/2017 Step 4

Binary to Decimal Technique 2: 3/31/2017 Step 5

Binary to Decimal Technique 2: 3/31/2017 Step 6

Binary to Decimal Technique 2: 3/31/2017 Step 7

Binary to Decimal Technique 2: 3/31/2017 Step 9

Binary to Decimal- Decimal to Binary (123)10 = 1111011 (11100011)2 = 227 150 = 10010110 10100010 = 162 3/31/2017

Summary of Decimal Number System A positional Number System Has 10 Symbols or Digits (0,1,2,3,4, 5,6,7,8 ,9). Hence its base is 10. The maximum value of single digit is 9. Each position of a digit represent a specific power of the base 10. 3/31/2017

Summary of Decimal Number System In positional number systems, there are only few symbols, called digits, and these symbols represent values, depending on the position , they occupy in the number. The value of each digit is determined by three steps The digit itself The position of the digit in the number The base of the number systems Examples Decimal number systems Binary number systems Octal number systems Hexadecimal number systems. 3/31/2017

Summary of Binary Number System As we know that decimal system the base is equal to 10. It means that there are 10 digits in decimal system i.e. 0,1,2,3,…,9. Binary number system is same as decimal system, except that the base is 2, instead of 10. In Binary System there are only two digits (0,1) , which can be used. Each position in a binary system represent the power of base (2) 3/31/2017

Summary of Binary Number System 3/31/2017 = 16 + 0 + 4 + 0 + 1 = 21

Octal Number System In Octal Number System, the base is 8. So, there are eight digits: 0,1,2,3,4,5,6 and 7. Each position in an octal number represents a power of base 8. Since there are only 8 digits, so 3 bits are sufficient to represent any octal number in binary, Example = 1024 + 0 + 40 + 7 = 1071

Hexadecimal Number System In hexadecimal number system, the base is 16. So, there are 16 digits or symbols in hexadecimal number system. First 10 digits are 0,1,2,3,4,5,6,7,8,9. The remaining six digits are denoted by the symbols A, B, C, D, E and F, representing the decimal values 10, 11,12, 13, 14 and 15, respectively. Each position in the hexadecimal system represents a power of the base (16) Example: = (1 * 256) + (10 * 16) + (15 * 1) = 256 + 160 + 15 = 431

Converting From One Number System To Another Any number in one number system can be represented in other number system. In computer system, the input and output is mostly in decimal number system. So, computer takes input in decimal and convert it into binary than process the input and converts again in decimal to produce output. Which is understandable to user.

Converting From Decimal to Another Base Four Steps Divide the decimal number to be converted by the value of new base. Record the remainder from Step 1 as the right most digit of the new base number. Divide the quotient of the previous divide by the new base. Record the remainder from step 3 as the next digit (to the left) of the new base. Repeat Step 3 and 4 until the quotient becomes zero.

Converting From Decimal To Another Base Example 2 42 remainder 21 0 10 1 5 0 2 1 1 0 0 1 Hence 42 = 101010

Converting to Decimal from Another Base Three steps. Determine the column value of each digit (this depends on the position of the digit and the base of the number). Multiply the obtain column values by the digits in the corresponding columns. Sum the products calculated in step 2. The total is equivalent value in decimal.

Converting to Decimal from Another Base Example Step 1: Determine the values. 1 2 3 4 5 Step 2: Multiply Column values by corresponding column digits (1x16) + (1x8) + (0x4) + (0x2) + (1x1) Step 3: Sum the product 16 + 8 + 0 + 0 + 1 = 25

Decimal to Octal 3/31/2017 Step 9

Octal to Decimal The given number is 2018 2018 = (2 * 82) + (0 * 81) + (1 * 80) = 2 * 64 + 0 * 8 + 1 * 1 = 128+0+1 = 129 The equivalent decimal number for 2018 is 129 2018 = 129 3/31/2017

Decimal to Octal - Octal to Decimal The given number is (532) 10 = ( ?) 8 The given number is (532) 8 = ( ?) 10 Answer: 1024, 346 3/31/2017

Hexadecimal Numbering systems Base: 16 Digits: 0, 1, 2, 3, 4, 5, 6, 7,8,9,A,B,C,D,E,F Hexadecimal number: 1F416 powers of : 164 163 162 161 160 decimal value: 65536 4096 256 16 1 Hexadecimal number: 1 F 4

Hexadecimal Numbering systems Four-bit Group Decimal Digit Hexadecimal Digit 0000 0 0 0001 1 1 0010 2 2 0011 3 3 0100 4 4 0101 5 5 0110 6 6 0111 7 7 1000 8 8 1001 9 9 1010 10 A 1011 11 B 1100 12 C 1101 13 D 1110 14 E 1111 15 F

Hexa to Decimal Conversion To convert to base 10, beginning with the rightmost digit multiply each nth digit by 16(n-1), and add all of the results together. Ex: 1F416 positional powers of 16: 163 162 161 160 decimal positional value: 4096 256 16 1 Hexadecimal number: 1 F 4 256 + 240 + 4 = 50010

Converting From a Base Other Than 10 to a Base Other than 10 Two Steps Convert The original number into decimal number system Convert the decimal number obtained in step 1 to the new number.

Shortcut Method of converting Binary number system to Octal Number System Step 1: Divide the digits into group of three starting from the right Step 2: Convert each group of three binary digits to one octal digit using the method of binary to decimal conversion.

Shortcut Method of converting Binary number system to Octal Number System

Shortcut Method of converting Octal Number System to Binary number system

Shortcut Method of converting Binary number system to Hexadecimal Number System Step 1: Divide the digits into group of four starting from the right Step 2: Convert each group of four binary digits to one Hexadecimal number.

Shortcut Method of converting Binary number system to Hexadecimal Number System

Shortcut Method of converting Hexadecimal Number System to Binary number system Step 1: Convert Each Hexadecimal digit to a 4 digit binary number. Step 2: Combine all the resulting binary groups into a single binary number

Shortcut Method of converting Hexadecimal Number System to Binary number system

Fractional Numbers

Formation of Fractional Numbers in Binary Number System

Anyone who has never made a mistake has never tried anything new. 3/31/2017 Anyone who has never made a mistake has never tried anything new. Einstein