© Maths Support Service 2007 Binary and Hexadecimal Numbers Next Slide 111000 AE98FD 111000 AE98FD.

Slides:



Advertisements
Similar presentations
© 2004, Robert K. Moniot Binary and Hex How to count like a computer.
Advertisements

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 COE 202 Digital Logic Design Dr. Aiman El-Maleh
Web Colors. Web Colors Using CSS Thus far, we have set our text and background colors using actual color names, such as:.example { background-color: gray;
4.01 HTML, CSS and Color. Introduction This presentation includes the following topics: Additive color theory Color Names RGB Colors Hex Colors.
Connecting with Computer Science, 2e
Binary Representation
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Understanding the Resistor Color Code
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Contains 16,777,216 Colors. My Car is red My Car is red How do I add colors to my web page? Notepad Browser Works with the “Standard” colors: Red, Green,
Computer Systems 1 Fundamentals of Computing
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Colour & Image in HTML Wah Yan College (Hong Kong) Mr. Li C.P.
ENEL 111 Digital Electronics Richard Nelson G.1.29
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
Hexadecimal Number System
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
© 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.
Agenda Data Representation Purpose Numbering Systems Binary, Octal, Hexadecimal (Hex) Numbering System Conversions Binary to Octal, Octal to Binary Binary.
Digital Colour Theory. What is colour theory? It is the theory behind colour mixing and colour combination.
Explanation of Web 6, Web 7 and Web 9 at my site Please be sure to bring up the speaker notes for the explanation Intro - Web 6, Web 7 and Web 9.
Chapter 16 Binary and Hexadecimal Numbers. §16.2 thru 16.3 – Addition and Subtraction of Binary Numbers Binary = Base 2 Addition and subtraction are similar.
Real Numbers and the Decimal Number System
Binary and Hexadecimal Numbers
Number Systems Binary and Hexadecimal. Base 2 a.k.a. Binary  Binary works off of base of 2 instead of a base 10 like what we are taught in school 
Numbering Systems CS208.
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
What are the five colors in the legend? Enter the information below (5 points) 0000FF = = FFFFFF = 00FF00 = FF0000 = Color Theory Legend: income.
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 CIT Network Math
Web Colors. Web Colors: Up until now, we have been using only pre- defined color names, such as "orange" and "lightblue". As web designers, we need the.
Colors. Color of HTML Elements You can control the color of the following elements: You can control the color of the following elements: All text within.
Hexadecimal Codes 1. RGB Color Wheel 2 Before we begin Hexadecimal is a number system Based on using 0 – F to represent 0 – 15 Hex is used to represent.
Applying Color in CSS Web Design – Sec 4-5 Part or all of this lesson was adapted from the University of Washington’s “ Web Design & Development I ” Course.
Number Systems Ron Christensen CIS 121.
The Hexadecimal Number System and Memory Addressing ISAT 121.
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.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
$100 $200 $300 $400 $100 $200 $300 $400 $300 $200 $100 Fraction with pictures Convert mixed to improper fractions Convert improper to mixed fractions.
# Red Green Blue Digital Color RGB to HEX.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
HEXADECIMAL NUMBERS.
Announcements Chapter 8 for today. 2 More Digitization Light, Sound, Magic: Representing Multimedia Digitally © Lawrence Snyder, 2008.
Binary Decimal Hexadecimal
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
Hexadecimal (base 16) BY MAT D. What is hexadecimal  Hexadecimal is a number system like binary or denary that has 16 characters, the numbers 0-9 and.
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.
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.
Digital logic COMP214  Lecture 2 Dr. Sarah M.Eljack Chapter 1 1.
UMBC CMSC 104 – Section 01, Fall UMBC CMSC 104, Section 01 - Fall 2016  Nothing. Enjoy your weekend! 2.
4.01 HTML, CSS and Color.
Hexadecimal Sweet Sixteen!.
Hexadecimal Conversion
Convert Decimal to Binary
4.01 HTML, CSS and Color.
Tools of Web Development 1: Module A: Numbering Systems
Hexadecimal Binary Made Easier.
Binary / Hex Binary and Hex The number systems of Computer Science.
Topic 3: Data Hexadecimal.
Instructions for creating a template in MS Frontpage
HTML Colour Codes (Hexadecimal)
What Color is it?.
Web Colors.
Binary CSCE 101.
4.01 HTML, CSS and Color.
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Presentation transcript:

© Maths Support Service 2007 Binary and Hexadecimal Numbers Next Slide AE98FD AE98FD

© Maths Support Service 2007 Decimal Number System Ten Digits, so it is said to be base 10 0,1, 2, 3, 4, 5, 6, 7, 8, 9 Ten fingers Each position in the decimal system represents 10 n 4567 = 7 X X X X 10 3 Previous Slide Next Slide

© Maths Support Service 2007 Base 5 0,1, 2, 3, 4, 10,11,12,13,14, 20, 21, 22, 23, 24, 30, 31, 32,33, 34, 40, 41,42,43, 44, 100, 101 etc Previous Slide Next Slide

© Maths Support Service 2007 Binary System Two digits, so it is base 2 0 and 1 0,1,10,11,100,101 etc Each position in a binary number represents 2 n Thus 10101= 1 X X X X X 2 4 Previous Slide Next Slide Fancy a class game of Binary or Buzz

© Maths Support Service 2007 Activities 4, 5,6, 7 Base 10 = decimal Base 2 =binary 2356= 6 X X X X = 1 X X X X X X = 1 X X X X X X 2 5 Previous Slide Next Slide

© Maths Support Service 2007 Adding Binary Numbers Previous Slide Next Slide

© Maths Support Service 2007 Subtraction Binary Numbers Previous Slide Next Slide

© Maths Support Service 2007 Activities 8 and Add Subtract Previous Slide Next Slide

© Maths Support Service 2007 Convert 47 in Decimal to Binary 47 / 2 = 23 rem 1 23 / 2 = 11 rem 1 11 / 2 = 5 rem 1 5 / 2 = 2 rem 1 2 / 2 = 1 rem 0 Hence 47 in decimal format equals in binary format. Previous Slide Next Slide

© Maths Support Service 2007 Alternative Method to convert from Decimal to Binary Look for the highest power of 2 that divides into 47, subtract it from 47, then look for the highest power of 2 that goes into the remainder and subtract it from the remainder, repeat until you arrive at one or zero. 47 = 1 (32) + 0(16) + 1(8) +1(4) + 1(2) +1(1) So 47 equals in binary 29= 1 (16) + 1(8) + 1(4) + 0(2) + 1(1) So 29 = in binary Previous Slide Next Slide

© Maths Support Service 2007 Convert Binary to Decimal X 160 X 81 x 41 x 21 X = 23 Previous Slide Next Slide

© Maths Support Service 2007 Activities 10,11,12, Previous Slide Next Slide

© Maths Support Service Digits instead of 10 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A So numbers go 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, 10,11,12,13,14,15,16,17,18,19,1A, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 2A, 30 Previous Slide Next Slide

© Maths Support Service 2007 Hexadecimal 16 DIGITS 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F Numbers go 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1A, 1B, 1C, 1D, 1E, 1F, 20 etc Previous Slide Next Slide

© Maths Support Service 2007 Uses of Hexadecimal Computer operations are done by binary systems. One and Zero or on and off or yes and no. Because of the large nature of binary numbers, when talking computer code, they are normally represented in hexadecimal format. These can be addresses of RAM. The hexadecimal notation is often used in error messages. Sometimes it is used in obscure web addresses. Also used in HTML code to convey the background colour required. Previous Slide Next Slide

© Maths Support Service 2007 HTML Color The background colour of a webpage is made up of a combination of three colours, red, green and blue. Note the background can also be a picture. Each colour is allowed to be represented by two hexadecimal digits in the order red, green and blue. This is known as the RGB color code. For each hexadecimal digit there is a choice of 16, so for 6 digits there is a choice of 16 x 16 x 16 x 16 x1 6 x 16. Over 1.6 million colours. Note mixing colours in HTML is not the same as mixing paint. Previous Slide Next Slide

© Maths Support Service 2007 To see HTML Color in action Go to START, All Programs, Accessories and Notepad. Type in the following code: Save as color.html in My Documents. Notice it has to have.html at the end. Go to My Documents and open. Click to see in action. Now change the hex colour codes in your Notepad program, save and refresh to see new colours. This could be done in a computer room or with a classroom computer and data projector. Previous Slide Next Slide

© Maths Support Service 2007 Special Color codes Black White FFFFFF Red FF0000 Green 00FF00 Blue 0000FF Gray or the same amount of each colour. Yellow F0F0000 Orange FF7000 Brown Previous Slide Next Slide

© Maths Support Service 2007 Convert Binary to Hexadecimal Any combination of 4 binary digits together will always represent the decimal numbers 0 to 15. Divide the binary number into groups of 4, from right to left. To convert binary to hexadecimal, 1101 equals 13, which is D and 1000 equals 8. So in binary equals 8D in hexadecimal. If there are less than 4 digits on the left add zeros to the left. For example , is divided into 0111 and 0010 and hence equals 27 in hexadecimal. Previous Slide Next Slide

© Maths Support Service 2007 Convert Hexadecimal to Binary For example 2D4F 2=0010 D=1101 4=0100 F=1111 Then 2D4F= Previous Slide Next Slide

© Maths Support Service 2007 Convert Hexadecimal to decimal For example D67F D67F=13 X X X Previous Slide Next Slide

© Maths Support Service 2007 Convert Decimal to Hexadecimal Best way is to go decimal to binary and then binary to hexadecimal. Previous Slide Next Slide

© Maths Support Service 2007 Conversion table decimal_hexadecimal.htmhttp:// decimal_hexadecimal.htm Previous Slide Next Slide