Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e.

Slides:



Advertisements
Similar presentations
Nat 4/5 Computing Science Lesson 1: Binary
Advertisements

Floating Point Numbers
Floating Point Numbers
Representing Real Numbers Using Floating Point Notation Lecture 6 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
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.
 A binary number is a number that includes only ones and zeroes.  The number could be of any length  The following are all examples of binary numbers.
Computer Science 210 Computer Organization Floating Point Representation.
Floating Point Numbers.  Floating point numbers are real numbers.  In Java, this just means any numbers that aren’t integers (whole numbers)  For example…
Computer Systems Nat 4/5 Computing Science Lesson 1: Binary.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
Factional Values What is 0.75 in binary?. How could we represent fractions? In decimal: – As fractions : 1/5.
James Tam Number systems and logic What is the decimal based number system How does the binary number system work Converting between decimal and binary.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Introduction to Numerical Analysis I
The Teacher CP4 Binary and all that… CP4 Revision.
16. Binary Numbers Programming in C++ Computer Science Dept Va Tech August, 1999 © Barnette ND, McQuain WD, Keenan MA 1 Binary Number System Base.
NUMBER SYSTEM Decimal System Binary System. We use two digits in this system (0,1) just like the existing system of computers.. And write the number in.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 2: Floating Point Representation.
ITEC 1011 Introduction to Information Technologies 4. Floating Point Numbers Chapt. 5.
The Teacher CP4 Binary and all that… CP4 Revision.
Introduction to Number System
Fractions in Binary.
Floating Point in Binary 1.Place Value Chart:
Computer Systems Nat 4/5 Computing Science Lesson 1: Binary.
Georgia Institute of Technology Introduction to Programming Part 3 Barb Ericson Georgia Institute of Technology May 2006.
COMPUTER SCIENCE Data Representation and Machine Concepts Section 1.7 Instructor: Lin Chen Sept 2013.
COMPUTER PROGRAMMING I Objective 1.02 Understand Numbering Systems.
Lecture 6: Floating Point Number Representation Information Representation: Floating Point Number Representation Lecture # 7.
Learning Objectives 3.3.1f - Describe the nature and uses of floating point form 3.3.1h - Convert a real number to floating point form Learn how to normalise.
Software Design and Development Storing Data Computing Science.
Starter Using two’s Complement form convert the following from Denary to Binary using 8 bits. Answer on mini whiteboard Using two’s.
Binary Numbers Press any key to begin.. In order to understand the binary numbering system lets first look at our decimal system. The decimal numbering.
FLOATING-POINT NUMBER REPRESENTATION
Lesson Objectives Aims You should know about: Binary numbers ‘n’ that.
Floating Point Numbers
Introduction to Numerical Analysis I
Nat 4/5 Computing Science Lesson 1: Binary
Department of Computer Science Georgia State University
Fundamentals of Computer Science
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
A brief comparison of integer and double representation
Hexadecimal Conversion
Introduction To Computer Science
Overview Introduction Data representation Fixed Point Representation
Recap Add these numbers together in binary
Starter Questions 39 x 30 28o.
Binary numbers: Week 7 Lesson 1
Representation of data in computer systems
Intermediate 2 Computing
Binary Lesson 1 Nybbles.
Binary Lesson 1 Nybbles.
CSCI206 - Computer Organization & Programming
Binary Lesson 1 Nybbles.
Binary Numbers Press any key to begin..
Data Representation Conversion 05/12/2018.
Topic 1: Data Representation
Data Binary Conversion.
Number Representation
Objective 1.02 Understand Numbering Systems
Divisibility 2,5 and 10.
Storing Integers and Fractions
Scientific Notation.
Representation of real numbers
COMS 161 Introduction to Computing
To be able to multiply a number by 10, 100 and 1000
Computer Systems Nat 4/5 Computing Science Data Representation
Presentation transcript:

Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e. 1, 2, 3…) For each number you cannot use a finger more than once

Learning Intention I will learn how computers store whole numbers (Integers)

The Decimal System We use the decimal or base 10 system in normal life: This means we have 10 digits: 0-9

The Binary System Computers use the binary or base 2 system: There are two digits: 0 and 1 Each figure is known as a bit (binary digit)

Decimal Numbers Look at how a decimal number is made up: e.g. 273 273 = (2 x 100) + (7 x 10) + (3 x 1) Hundreds 103 = 100 Tens 102 = 10 Units 101 = 1 2 7 3

Binary Numbers The column headings for 8-bit binary numbers are: 128 64 32 16 8 4 2 1

Converting Binary to Decimal Lets look at how 23 is stored in binary: = (1 x 16) + (1 x 4) + (1 x 2) + (1 x 1) = 16 + 4 + 2 + 1 = 23 128 64 32 16 8 4 2 1

Steps to convert from Binary to Decimal Write the binary column headings Write the binary number below the headings Add up the column headings that have a 1: 64 + 32 + 8 + 2 = 106 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

Try these: Convert from Binary to Decimal: 00001110 =8+4+2=14 00101011 01111001 =8+4+2=14 =32+8+2+1=43 =64+32+16+8+1=121

Complete Task 2 questions 1 to 5 Remember to use the column headings to help you: 128 64 32 16 8 4 2 1

Success Criteria I know how computers store numbers and can convert from binary to decimal.

There are only 10 kinds of people in the world There are only 10 kinds of people in the world. Those who understand binary and those who don’t.

Learning Intention I will learn how to convert from decimal into binary.

Converting Decimal to Binary Let’s look at how to write the decimal value 145 in binary: = 128 + 16 + 1 = 145 128 64 32 16 8 4 2 1

Steps to convert from Decimal to Binary E.g. for the Decimal number 89 Write the column headings 128 64 32 16 8 4 2 1

Try these: Convert from Decimal to Binary: 1 1 1 15 1 73 114 212 128 64 32 16 8 4 2 1 1 1 1 1

Complete Task 2 questions 6 and 7 Remember to use the column headings to help you: 128 64 32 16 8 4 2 1

Success Criteria I can convert from decimal into binary.

Learning Intention I will learn how computers store real numbers

These are stored using floating point representation. Storing real numbers Computers need to be able to store real numbers (e.g. 3678.2521), not just whole numbers. These are stored using floating point representation.

In maths you would store a floating point number such as 20 In maths you would store a floating point number such as 20.25 as follows in standard form: 0.2025 x 102 m x 10e mantissa exponent

Storing real numbers (cont) Computers store floating point numbers by storing the binary values for the mantissa and exponent

Success Criteria I can describe how computer store real numbers.