Number Bases In today’s lesson we will look at: what we mean by a number base how ordinary numbers work a number system called binary why binary is useful.

Slides:



Advertisements
Similar presentations
Place Value System For Whole Numbers. This is how the place value structure for whole numbers works: Millions HTOHTOHTO ThousandsOnes Note that.
Advertisements

1 3 Computing System Fundamentals 3.5 Data Representation.
A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
Hexadecimal In today’s lesson we will look at: the need for something other than binary how hexadecimal works how to convert between hexadecimal and binary.
Computer Arithmetic: Binary, Octal and Hexadecimal Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
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.
SIMS-201 Representing Information in Binary. 2  Overview Chapter 3: The search for an appropriate code Bits as building blocks of information Binary.
REPRESENTING INFORMATION: BINARY, HEX, ASCII C ORRESPONDING R EADING : UDC C HAPTER 2 CMSC 150: Lecture 2.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
© Maths Support Service 2007 Binary and Hexadecimal Numbers Next Slide AE98FD AE98FD.
Digital Colour Theory. What is colour theory? It is the theory behind colour mixing and colour combination.
Year 6 SATs Booster Maths 1 Place Value Part 1.
Real Numbers and the Decimal Number System
Chapter 7 Section 7.1 Place Systems.
Binary Arithmetic In today’s lesson we will look at: a reminder of how binary works adding binary numbers overflow complements negative numbers and subtraction.
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.
ENGINEERS FUTURE To optimize things When we type some letters or words, the computer translates them in numbers as computers can understand only numbers.
Number Representation. Representing numbers n Numbers are represented as successive powers of a base, or radix.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
1 3 Computing System Fundamentals 3.5 Data Representation.
Visualizing Decimal and Binary
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.
Data Representation The storage of Text Numbers Graphics.
1 1 7-Dec-15 Binary Converting to and from decimal.
Extending Binary In today’s lesson we will look at: representing different types of numbers possible errors binary coded decimal (BCD) comparing BCD with.
HEXADECIMAL NUMBERS.
Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. Bits and Bytes.
COMPUTER PROGRAMMING I Objective 1.02 Understand Numbering Systems.
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 Number System Representation of Data in Computer Systems.
Chapter 2: Binary Values and Number Systems Chapter 2 Binary Values and Number Systems Page 14 Information may be reduced to its fundamental state by.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
What do you think this lesson is all about? Write your answer on a sticky note.
Number Systems & Binary How to count. How do we represent numbers? Early systems: – Actual count : ||||| = 5 – Roman numers : XI = 11 Hard to do math:
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Binary, Decimal and Hexadecimal Numbers 1. Numbering Systems Radix - In mathematical numeral systems, the radix or base is the number of unique digits,
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.
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.
Decimal Numbers.
Number Systems.
Hexadecimal Sweet Sixteen!.
Binary, Decimal and Hexadecimal Numbers
Binary and Hexadecimal
Week 3 - Monday CS 113.
Discrete Mathematics Numbering System.
Lesson Objectives Understand the hexadecimal numbering system
Number Systems & Binary
Binary Lesson 1 Nybbles.
Number Bases In today’s lesson we will look at:
Binary Lesson 1 Nybbles.
Number Bases In today’s lesson we will look at:
Binary Lesson 1 Nybbles.
Hexadecimal Binary Made Easier.
Binary Lesson 2 Bytes.
Topic 3: Data Hexadecimal.
Binary Numbers? Foley SED 514 Section /2/2019.
Binary Lesson 3 Hexadecimal
Chapter 2: Number Systems
Binary Lesson 3 Hexadecimal
COMS 161 Introduction to Computing
Objective 1.02 Understand Numbering Systems
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.
Binary Lesson 3 Hexadecimal
Chapter Four Data Representation in Computers By Bezawit E.
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.
Objective - To read, write and identify the values of whole numbers.
Binary CSCE 101.
Binary Lesson 1 Nybbles.
Binary Lesson 1 Nybbles.
Presentation transcript:

Number Bases In today’s lesson we will look at: what we mean by a number base how ordinary numbers work a number system called binary why binary is useful other bases

What is a Number Base? A number base is a method for writing down numbers For example, we normally use a number system called base 10 (also sometimes called denary or decimal), which is all based on the number 10 Some people think that we developed a number system based on tens because we have ten fingers You might also know other number systems, e.g. roman numerals or tallies (as used in tally charts) We are only talking about how numbers are written down – this doesn’t change the way numbers work

The Decimal System The number system most of us use is based on tens: x10 As we move left, the column headings increase by a factor of ten In each column we can have ten different digits (1 to 9 and 0) This number is: 1 x x x x 1 That gives us one thousand two hundred and thirty four

Binary The binary system is the same, but is based on two: x2 As we move left, the column headings increase by a factor of two In each column we can have two different digits (0 or 1) This number is: = 11 It’s still eleven, it’s just written down differently

Why Use Binary? Computers haven’t got fingers, but they have got circuits that can be on or off We can use on to represent 1 and off to represent 0 and use these circuits to process binary numbers Everything inside the computer, therefore, is done in the form of binary Binary numbers can be sent along cables as pulses of electricity (where a pulse would be 1, and a gap is 0) If you used your hands to count using binary (finger up = 1, down = 0), you could count up to 1023 on your ten fingers!

Anything Else? You might have noticed that lots of numbers to do with computers are multiples of 2 – e.g. you can get iPods with 8Gb, 16Gb, 32Gb, etc, of storage, rather than 10Gb, 20Gb, 30Gb, etc. Numbering things with multiples of two (1, 2, 4, 8, 16, etc.), rather than sequentially (1, 2, 3, 4, 5), gives them an interesting property… …any given combination gives a unique total that can only come from that one combination This can be used to create things called binary flags

Other Bases Hexadecimal is sometimes used; it’s based on sixteens: x16 As we move left, the column headings increase by a factor of sixteen In each column we can have sixteen different digits This number is: 1 x x x 1 = 291 It’s still two hundred and ninety- one, it’s just written down differently

Wait a Minute... How can there be sixteen possible digits in each column, when there are only ten digits? Hexadecimal uses the digits 0-9 and the letters A-F, so counting would look like this: ABCDEF ABCDEF A1B1C1D1E1F A2B2C2D2E2F …etc

Why Use Hexadecimal? Hexadecimal numbers are shorter than their decimal equivalents, and use fewer digits. For example, a two digit number can be up to FF, which is 255 Hexadecimal is most often used to describe colours, especially when editing a web-page or adjusting the palette in your painting program Colour codes are made up of two digits each for the amount of red, green and blue, in the form #RRGGBB e.g. #FF0000 is bright red, #FF00FF is purple, etc.