Binary Numbers Computer Science 2. Why Binary Numbers? Early computers were analog –Numbers were stored as an intensity –E.g. 2.7 volts was 27, 3.4 volts.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Multiplying by 10, 100 or 1000 x 100 = x 100 = x 100 = x 100 = x 100 = x 100 = C.
1 CSCE Binary and Hexadecimal Numbers. Binary Numbers Computers store and process data in terms of binary numbers. Binary numbers consist of.
Information Processing & Digital Systems COE 202 Digital Logic Design Dr. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University.
Digital Circuit Why Digital Circuit? – Digital signals ( 0 and 1) are very easy to handle with electronic circuits only 2 states needed: Switch ON or OFF,
James Tam Non decimal math: doing math with non-base 10 number systems Addition, subtraction and multiplication with binary, octal and hexadecimal.
How Computers Represent Information Yong Choi School of Business CSU, Bakersfield.
Binary Conversion In today’s lesson we will link together the binary and algorithm topics by looking at how to get the computer to: convert binary to decimal.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Multiplying Decimals. Multiplying Decimals Notes Multiply as usual, ignoring the decimal points. Count how many total digits are to the right of the decimal.
EXAMPLE 1 Multiplying Decimals by Whole Numbers Find the product
x two one three.
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Chapter 1 1 Number Systems. 2 Objectives  Understand why computers use binary (Base-2) numbering.  Understand how to convert Base-2 numbers to Base-
Revision for A level year 2. * TTL stands for Transistor Transistor Logic * TTL operates on a power supply of 5 volts * The power supply tolerance for.
CONVERTING NUMBERS TO STANDARD FORM
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Long Multiplication! Foil Method! Example:
Place Value and Multiplication
The Scientific Method 1. Using and Expressing Measurements Scientific notation is written as a number between 1 and 10 multiplied by 10 raised to a power.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Multiplying and Dividing Decimals by 10, 100, and 1,000
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 Systems What is the Standard Base we
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Binary! Why do computers use binary? Easy to detect the state of a switch – they’re either on or off! Using another base makes.
Computer Systems Architecture Copyright © Genetic Computer School 2008 CSA 1- 0 Lesson 1 Number System.
Dividing by 10, 100 or 1000 ÷ 100 = 13.4 ÷ 100 = 38.3 ÷ 100 = 24.8 ÷ 100 = 85.5 ÷ 100 = 79.7 ÷ 100 = C. ÷x 0 + On ² - Ans = √ (-) Whole.
Chapter 7—Objects and Memory The Art and Science of An Introduction to Computer Science ERIC S. ROBERTS Java Objects and Memory C H A P T E R 7 Yea, from.
Data Basics. Binary Number System Numeration systems are methods of representing numbers. All current number systems are positional in nature. In
CSC 221 Computer Organization and Assembly Language
Digital Logic Lecture 2 Number Systems
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Number Base Conversions
Converting From decimal to Binary & Hexadecimal to Binary
Computing with Decimals. Adding and Subtracting Decimals.
AP Computer Science A – Healdsburg High School 1 Unit 1 - Binary Numbers - Hexadecimal Numbers.
Working with 8-bit bytes and hexadecimal
How a Computer Processes Information. Java – Numbering Systems OBJECTIVE - Introduction to Numbering Systems and their relation to Computer Problems Review.
Visualizing Decimal and Binary
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Partial Products Multiplication Step by Step 742 X = Expand each number.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Information Representation: Positive Integers Dale Roberts,
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
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.
Chapter 01 Numbers. Chapter 02 Base 10 example Decimal Number Place Place (place - 1) ===============================
st significant figure Significant figures Significant figures 1 st significant figure.
Number systems Visualizing Decimal and Binary. We count in base 10 because people started by counting on their fingers Base 10 is a number system that.
YOUR VIRTUAL WORLD – THE HEXADECIMAL NUMBERING SYSTEM Prepared by Mrs. Christina Morris, July, 2014.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Binary and Hexadecimal
ME 142 Engineering Computation I
COMPUTER ORGANIZATION
Lecture 3: Binary values and number systems
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Multiplying 2 Digit Factors
COMPUTING FUNDAMENTALS
Visualizing Decimal and Binary
Number Systems Base 2, 10, 16.
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Everything that goes on under the hood of a computer is done in binary -- the language of 0s and 1s. If we have only two numbers, it's very easy to represent.
Multiplication of Decimals
Digital Electronics and Microprocessors
Architecture and Logic Gates
The basics of any electronic device means either electricity is flowing or it is not i.e. a switch is either on or off Computers are electronic devices.
Computer Science 1 Binary and Hexadecimal Numbers
Information Representation
Presentation transcript:

Binary Numbers Computer Science 2

Why Binary Numbers? Early computers were analog –Numbers were stored as an intensity –E.g. 2.7 volts was 27, 3.4 volts was 34, etc. This limited the capabilities of computers –Limited the size of the number –Limited the accuracy –Power fluctuations could cause serious errors so computers were not very robust

Digital Computers Computer engineers sought to store numbers using switches Switches are either on or off –Means power fluctuations do not introduce inaccuracy. –But how do you store more than two numbers? The answer lies in different numbering systems.

Our numbering system Called base 10 or decimal –10 possibilities for each digit (1-9 or zero). –Rightmost digit multiplied by 1 –2nd to rightmost multiplied by 10 1 (10) –3rd to rightmost multiplied by 10 2 (100) –4th to rightmost multiplied by 10 3 (1,000) –etc.

A base 10 number 8,507 7x10 0 = 7 0x10 1 = 0 5x10 2 = 500 8x10 3 =

Base 10 isn’t the only numbering system Base 16 (or hexadecimal) –16 possibilities for each digit (1-15 and 0) –Rightmost digit still multipled by 1 –Next to rightmost digit multiplied by 16 1 =16 –Next digit multiplied by 16 2 =256 Base 2 (or binary) –2 possibilities for each digit (1 and 0) –Right must digit mulitplied by 1 –Next to right most multiplied by 2 1 =2 –Next multiplied by 2 2 =4 –Ideal for storing numbers using on/off switches!

A binary number x2 0 = 1 0x2 1 = 0 1x2 2 = 4 1x2 3 = Note that binary numbers are represented using the subscript 2 ( 2 )

Summary Multiple number systems exist –We use decimal or base 10 –Also base 16 (hexadecimal) and base 2 (binary) Binary numbers are used in computers because they are easy to store using on/off switches. –Each digit can be 1 or 0 –First digit multiplied by 2 0, next by 2 1, third by 2 2, etc. –Denoted by following binary numbers with the subscript 2 (e.g )