Numbering Systems and Binary

Slides:



Advertisements
Similar presentations
Hamlet /Media Outline. I. Thesis Statement: (Director)s To be or not to be and (director)s Alas poor Yorick best exemplify William Shakespeares original.
Advertisements

Reagan/Clinton Compare/Contrast Essay. I. Reagan and Clinton both argue... but... A.Reagan argues B.Clinton argues.
NUMBER SYSTEM. How to convert hexadecimal numbers to decimal numbers? 230 Working from right to left, MULTIPLY each position with 8 raised to the power.
DATA REPRESENTATION CONVERSION.
Number System What’s the most natural way to count?
Copyright (c) 2004 Professor Keith W. Noe Number Systems & Codes Part I.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Lecture 3 Number System.
1 Series RLC Resonant Circuit V s = 10 Vrms, R = 10 , L = 100 mH, C = 10  F VsVs R L C I + V R - + V L - +VC-+VC-   (varied) Assignment #1: Part.
How Computers Think: Binary, Decimal and Hexadecimal For NYSCPT Summer Institute, NYU Andrew O’Neill Columbia University.
Roman Numerals. Roman Numerals - Past and Present  Romans used them for trading and commerce.  When Romans learned to write they needed a way to write.
2.1 2 Number Systems Foundations of Computer Science  Cengage Learning.
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
Roman Numerals. The Numbers I-1 II-2 III-3 IV-4 V-5 VI-6 VII-7 VIII-8 IX-9 X-10 C-100 D-500 M-1000.
Number Systems.
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
DECIMAL BASE Based on power of 10 In the number 2,468 – from right to left -- the 8 represents the ones, the 6 represents the tens, the 4 represents the.
Supplemental Chapter Number Bases
Salisbury Numbers we use in Auto Shop Why do I need to know this. When working on the computers in the auto shop sometimes we need to look into the.
NUMBER SYSTEM.
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
Number Systems Ron Christensen CIS 121.
Number systems, Operations, and Codes
DATA REPRESENTATION, DATA STRUCTURES AND DATA MANIPULATION TOPIC 4 CONTENT: 4.1. Number systems 4.2. Floating point binary 4.3. Normalization of floating.
The Hexadecimal Number System and Memory Addressing ISAT 121.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Positional Notation 642 in base 10 positional notation is:
Converting From decimal to Binary & Hexadecimal to Binary
CPIT 201 Introduction to Computing
Introduction to Number System
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Roman Numeral Multiplication Quiz
Presentation on Number System
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
What is History? Presentation #3 Mr. Bridgeo. How do we measure or retrace the evolution of societies? The unit of time that historians use to measure.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 4 Number Representation and Calculation.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
CMSC 1041 Binary / Hex Binary and Hex The number systems of Computer Science.
Number Systems and Binary Arithmetic Quantitative Analysis II Professor Bob Orr.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
CPIT 201 King AbdulAziz University Faculty of Computing & Information Technology Information Technology Department CH 2 Number Systems CPIT 201 Introduction.
Numeral Systems Rubel Biswas.
Coding Part 2. Weight of the Digit 3672 Thousands (10 3 )Hundreds (10 2 )Tens (10 1 )Units (1) = Weights Decimal Example (3672) 10 Binary.
By: Jonathan O. Cabriana
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Copyright (c) 2004 Professor Keith W. Noe
Number Systems Lab session 1 Xuan Guo.
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
4.2 Number Bases in Positional Systems
Binary Quiz UIN: ____________________
Number Systems and Binary Arithmetic
Flow diagrams (i) (ii) (iii) x – Example
Principles of Computing – UFCFA Lecture-3
3. Old Brain I III II V IV VII VI VIII IX X XII XI
There are 10 types of people of people in this world…
Digital Logic Design (CSNB163)
Binary Lesson 3 Hexadecimal
Number systems and codes
Binary Lesson 3 Hexadecimal
Roman Numerals.
Numeral systems (radix)
Roman numerals -Rules for writing.
Chapter 2 Number System.
Roman Numerals.
Number System.
DIGITAL SIGNAL.
Counting on the fingers of one hand Donald Smith
Presentation transcript:

Numbering Systems and Binary Dr. Yinong Chen

Contents 1 Numbering Systems 2 Binary, Decimal, and Hexadecimal 3 Conversion between Binary and Decimal 4 Conversion between Binary and Hexadecimal 20 November 2018

A Chinese Tale of a Numbering System Once upon a time, there was a smart boy. His father wanted him to learn counting, so that he could better manage the family farm. The father sent him to a counting school On day one, he learned to write one: I On day two, he learned to write two: II On day three, he learned to write three: III The smart boy concluded that he did not need to attend the school anymore, because he was smart enough to figure out the rest of the numbers. 20 November 2018

He needs to write the number 1008ten IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIII A numbering system in base-1 20 November 2018

Non-Positional Numbering Systems Roman number system uses a non-positional scheme: I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, …, XLI Addition is simple: XVI + VI = XVIVI = XXII (normalized) Large number is very long Multiplication and division are hard 602*2 + 601*1 + 600*3 Akkadian system used in Babylonia around 2000 BC, Each box (position) can have several symbols, representing 0 to 59, between boxes, it is positional, thus, forming a base 60 system A system in use in Greece from about 300 BC used a similar mixture. Each box can represent 0 to 999, and thus forming a base 1000 system 20 November 2018

Positional Numbering Systems http://www.psinvention.com/zoetic/basenumb.htm Base 1 (Unary) Base 2 (Binary) Base 5 (Hand) Base 8 (Octal) Base 10 (Decimal) Base 12 (duodecimal) Base 16 (Hexadecimal) Base 20 (Vigesimal) Base 60 (Sexagesimal) Important in Engineering Base 2 (Binary) Base 10 (Decimal) Base 16 (Hexadecimal) 20 November 2018

Binary Base 2: uses only 0’s and 1’s to represent all values Each place value represents 2x, where x = 0, 1, 2, 3, … A binary number can have any number of leading zeroes: there is no impact on the value. 1’s and 0’s occupy the place values to indicate whether that value is turned “on” (1) or “off” (0) In digital systems, it is easy to use 1 for high voltage and 0 for low voltage. 20 November 2018

Value of A Positional Number 2605ten = 2·103 + 6·102 + 0·101 + 5·100 1101two = 1·23 + 1·22 + 0·21 + 1·20 = 8 + 4 + 0 + 1 Base 10 Base 2 where di = 0, 1, …, b-1 d i × b = n - 1 å Base b dn-1dn-2 …d2d1d0 20 November 2018

Example: From Binary to Decimal 1 0 0 1 1 0 1 1 7 6 5 4 3 2 1 0 (position) 10011011 = (1)(27) + (0)(26) + (0)(25) + (1)(24) + (1)(23) + (0)(22) + (1)(21) + (1)(20) = (1)(128) + (0)(64) + (0)(32) + (1)(16) + (1)(8) + (0)(4) + (1)(2) + (1)(1) 20 November 2018

Decimal and Binary Comparison 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Binary 1 0000 1 0001 1 0010 1 0011 1 0100 1 0101 1 0110 1 0111 1 1000 1 1001 1 1010 1 1011 1 1100 1 1101 1 1110 1 1111 Decimal 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 Binary 10 0000 10 0001 10 0010 10 0011 10 0100 10 0101 10 0110 10 0111 10 1000 10 1001 10 1010 10 1011 10 1100 10 1101 10 1110 10 1111 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 10 11 100 101 110 111 1000 1001 1010 1011 1100 1101 1110 1111 20 November 2018

Decimal, Binary, and Hexadecimal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary 100 101 110 111 1000 1001 1010 1011 1100 1101 1110 1111 Hex Decimal 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Binary 1 0000 1 0001 1 0010 1 0011 1 0100 1 0101 1 0110 1 0111 1 1000 1 1001 1 1010 1 1011 1 1100 1 1101 1 1110 1 1111 Hex 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F Decimal 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 Binary 10 0000 10 0001 10 0010 10 0011 10 0100 10 0101 10 0110 10 0111 10 1000 10 1001 10 1010 10 1011 10 1100 10 1101 10 1110 10 1111 Hex 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 1 2 3 4 5 6 7 8 9 A B C D E F 20 November 2018

From Binary to Decimal å The value of a binary number can be expressed by 2605ten = 2·103 + 6·102 + 0·101 + 5·100 1101two = 1·23 + 1·22 + 0·21 + 1·20 = 8 + 4 + 0 + 1 = 13 where di = 0, 1 d i × 2 = n - 1 å 1010111001010100 = 215 + 213 + 211 + 210 + 29 + 26 + 24 + 22 = 32768 + 8192 + 2046 + 1024 + 64 + 16 + 4 = 44114 20 November 2018

From Decimal to Binary: Division Method 2 94 1011110 2 47 0 Convert decimal 94 to binary: 2 23 1 2 11 1 2 5 1 2 2 1 2 1 0 0 1 To verify the correctness: 1011110 two = 1·26 + 0·25 + 1·24 + 1·23 + 1·22 + 1·21 + 0·20 = 64 + 0 + 16 + 8 + 4 + 2 + 0 = 94ten 20 November 2018

Between Binary and Hexadecimal 10 1010 1101 0011 0000 1111 2 A B 3 0 F 2AB30F 3 B 4 F E 8 7 A 1 C D 11 1011 0100 1111 1110 1000 0111 1010 0001 1100 1101 Hexadecimal is most frequently used as a short hand notation of binary! 20 November 2018