Binary.

Slides:



Advertisements
Similar presentations
Base 10 Denary Decimal
Advertisements

COE 202: Digital Logic Design Signed Numbers
Addition of two binary numbers = = = = 39.
Binary & Decimal numbers = 3* * *10 + 5*1 = 3* * * *10 0 Decimal system: Ten digits: 0,1,2,3,…,9 Example:
Binary numbers. 1 Humans count using decimal numbers (base 10) We use 10 units: 0, 1, 2, 3, 4, 5, 6, 7, 8 and (5.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
© GCSE Computing Candidates should be able to:  convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa  add two 8-bit.
Binary Addition Addition Rules: = = = = = carry 1 1 carry 1 Example 1: Example 2:
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Computing Theory – F453 Number Systems. Data in a computer needs to be represented in a format the computer understands. This does not necessarily mean.
Number Systems Revision of conversations What is a register Addition Complementation.
Data Representation Conversion 24/04/2017.
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.
Number Bases and Representation. Denary Number System (Base 10) Our number system uses 10 digits (0-9) As you move from right to left each number is worth.
07/12/ Data Representation Two’s Complement & Binary Arithmetic.
1 1 7-Dec-15 Binary Converting to and from decimal.
GCSE Computing: A451 Computer Systems & Programming Numbers Representation of Data in Computer Systems.
Candidates should be able to:
1.4 Representation of data in computer systems Instructions.
A)Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa b)Add two 8-bit binary integers and explain overflow errors which.
Digital Representations ME 4611 Binary Representation Only two states (0 and 1) Easy to implement electronically %0= (0) 10 %1= (1) 10 %10= (2) 10 %11=
Outline Binary Addition 2’s complement Binary Subtraction Half Adder
GCSE Computing#BristolMet Session Objectives#8 MUST add two 8-bit binary integers SHOULD explain overflow errors COULD provide solutions to limit overflow.
Units Representation of Data in Computer Systems.
BINARY Toby Wilson. LEARNING OBJECTIVES  Be able to convert binary to denary  Be able to convert denary into binary  Be able to explain how computers.
Lesson Aim (Data representation) To be able to: Convert B/D & D/B Convert D/H & H/D Convert H/B & B/H Perform simple binary arithmetic Represent a number.
CPS120: Introduction to Computer Science Computer Math: Addition and Subtraction.
09/03/20161 Information Representation Two’s Complement & Binary Arithmetic.
Introduction to Number Representation A451 GCSE Computing.
{ Binary “There are 10 types of people in the world: Those who understand binary, and those who don't.”
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
Binary Numbers. Base 10 and Base 2  We normally work with numbers in base 10.  In base 10 we use the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.  Everything.
Lesson 2 – Denary to Binary
3.1 Denary, Binary and Hexadecimal Number Systems We use the denary (base 10) number system in our daily life for counting and calculation. Computers use.
WHAT IS BINARY? Binary is a number system that only uses two digits: 1 and 0. Any information that processed by a computer it is put into sequence of.
Floating Point Numbers
Objectives Today: P4 Data Types – Floating Points P4 Variable Quiz P3 Iteration and Selection Practical Are you logged on? Then come around the table Unit.
Binary & Decimal numbers
Binary, Denary, Hexadecimal Conversion Binary Addition
3.1 Denary, Binary and Hexadecimal Number Systems
Binary numbers: Week 7 Lesson 1
Denary to Binary Numbers & Binary to Denary
…to GCSE Level with Python Sue Sentance
Binary & Hexidecimal Numbers
Lesson Objectives Aims You should be able to: Convert Denary to Binary
Saturday, 10 November 2018 Binary
Topic 3: Data Binary Arithmetic.
Representation of Data in Computer Systems
Lesson Objectives To understand how to add 4 and 8 bit binary numbers together To understand what is meant by the term “Overflow” ALL students will add.
For OCR GCSE Computing Unit 1 - Theory
Data Representation Conversion 05/12/2018.
Binary Math Basic operations.
COMP 1321 Digital Infrastructure
1.6) Storing Integer:.
(return of the…) Data blast
Data Binary Conversion.
Binary “There are 10 types of people in the world: Those who understand binary, and those who don't.”
Binary  Name: Class: .
Hexadecimal.
Binary It’s all 0’s and 1’s.
Binary Numbers Material on Data Representation can be found in Chapter 2 of Computer Architecture (Nicholas Carter) CSIT 301 (Blum)
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Signed Integers.
WJEC GCSE Computer Science
Theory: 2.6 – Data Representation
Two’s Complement & Binary Arithmetic
Presentation transcript:

Binary

Binary digit = a Bit All Computers store programs and data as binary, therefore all data that is input into a computer must be converted into binary (machine code) before it can be processed by the computer. Bit is a single binary unit - 0 or 1 is stored. (off or on) A byte is a collection of 8 bits so therefore a combination of eight 0’s or 1’s combine for a byte. E.g. 00110011 A nibble is 4 bits, e.g. 0111

Denary We are used to counting in denary which allows the range 0-9 The table below demonstrates how a byte binary number represents a denary value. Denary Binary Data 128 64 32 16 8 4 2 1 7 60 129 140 151 166 255

Converting denary to binary As stated earlier for the computer to understand the data it must convert the denary to a binary value. Example Converting 47 to binary. Hint: work from the left. 128 64 32 16 8 4 2 1 32+8+4+2+1 = 47

Converting denary to binary Convert the following denary values to binary: 1. 27 128 64 32 16 8 4 2 1 2. 38 3. 165

Converting denary to binary 1. What is the largest denary value you can make in binary? 128 64 32 16 8 4 2 1

The largest value that may be stored in a Byte (8 bits) is shown below 128 64 32 16 8 4 2 1 255

Converting binary to denary. Convert the following binary values to denary: 1. 00101101 128 64 32 16 8 4 2 1 2. 10110001 3. 0011

Adding binary Adding binary example. Notes: 0 + 0 = 0 1 + 0 = 1 1 Notes: 0 + 0 = 0 1 + 0 = 1 1 + 1 = 10 so write 0 carry 1. binary 1 + binary 1 = binary 2. 1 + 1 + 1 = 11 so write 1 carry 1. binary 1 + binary 1 + binary 1= binary 3.

Adding binary – attempt the following Attempt the following binary addition. (9+5) 1 Attempt the following binary addition. (7+5) 1

Adding binary – attempt the following Attempt the following binary addition. (9+5) 1 Attempt the following binary addition. (7+5) 1

Overflow error When dealing with a byte (8 bits) the largest number we can store is 255. If we add two numbers that combine for a total of more than 255 then an overflow error would occur in this case. E.g. 200 + 178 = 378. This could not be stored in binary within a byte. Overflow 128 64 32 16 8 4 2 1 200 178+

Overflow Overflow 128 64 32 16 8 4 2 1 The overflow digit cannot be stored so the answer becomes 01111010 = 122! Overflow errors happen when the largest number that a register can hold is exceeded. The number of bits that it can handle is called the word size. Most CPUs use a much bigger word size than 8 bits. Many PCs have a 64-bit CPU. A 64-bit CPU can handle numbers larger than 18 quintillion (18,446,744,073,709,551,615 to be precise).

Past Paper Questions

Past Paper Questions

Past Paper Questions