Binary and Hexadecimal

Slides:



Advertisements
Similar presentations
1 Binary and Hexadecimal Numbers. 2 A binary number (base 2) is a sequence using the digits 0 and 1, such as The base of a number system is equal.
Advertisements

1 CSCE Binary and Hexadecimal Numbers. Binary Numbers Computers store and process data in terms of binary numbers. Binary numbers consist of.
DATA REPRESENTATION CONVERSION.
Information Processing Session 5B Binary Arithmetic Slide
Information Processing
Chapter 4.2 Binary numbers: Arithmetic
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.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Computer Systems 1 Fundamentals of Computing
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
© 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.
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.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 1 – Number Systems and.
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
Multiplying and Dividing Decimals by 10, 100, and 1,000
The Wonders of Conversion. A number system is a system in which a number is represented. There are potential infinite number systems that can exist (there.
Chapter 4: Representation of data in computer systems: Number OCR Computing for GCSE © Hodder Education 2011.
Conversions Denary to Binary Method 1
Computing with Decimals. Adding and Subtracting Decimals.
Number System sneha.
Hexadecimal. Overview Hexadecimal (hex) ~ base 16 number system Use 0 through 9 and... A = 10 B = 11 C = 12 D = 13 E = 14 F = 15.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Data Representation Hexadecimal  Although computers work in binary it is sometimes inconvenient for humans to read everything in Binary. For example in.
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.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
Candidates should be able to:
Announcement!!! First exam next Thursday (I’m trying to give you a first exam before the drop date) I’ll post a sample exam over the weekend and will try.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
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 Number System Representation of Data in Computer Systems.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
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.
Chapter 01 Numbers. Chapter 02 Base 10 example Decimal Number Place Place (place - 1) ===============================
Conversions 1)Binary to Denary Method 1 Work out the position values of the binary bits and add those values together So above would be
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.
Programmable Logic Controller
Some basic concepts underlying computer archi­tecture
Binary, Denary, Hexadecimal Conversion Binary Addition
Different Numeral Systems
Octal to Decimal Decimal Octal Binary Hexadecimal.
COMPUTING FUNDAMENTALS
Convert Decimal to Binary
Tools of Web Development 1: Module A: Numbering Systems
Lesson Objectives Aims You should be able to: Convert Denary to Binary
Data Storage Introduction to computer, 2nd semester, 2010/2011
Number Systems Base 2, 10, 16.
Dr. Clincy Professor of CS
Numbering System TODAY AND TOMORROW 11th Edition
Data Hexadecimal.
Topic 3: Data Hexadecimal.
Digital Electronics and Microprocessors
Binary  Name: Class: .
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Hexadecimal.
Computer Science 1 Binary and Hexadecimal Numbers
LO1 – Understand Computer Hardware
Binary, Hexadecimal, and Base 10.
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Section 6 Primitive Data Types
Presentation transcript:

Binary and Hexadecimal Photocopiable/digital resources may only be copied by the purchasing institution on a single site and for their own use © ZigZag Education, 2016

456 Base 10 Normally numbers are written in base 10 (called decimal). Each digit is worth 10 times more than the one to the right of it. 456 (4 × 100) (5 × 10) (6 × 1) 456 means four lots of 100, five lots of 10 and six lots of 1. (4 × 100) + (5 × 10) + (6 × 1) = 456 © ZigZag Education, 2016

111 Binary Computers work with a different number system. Computers use binary which only has two numbers, one and zero. In binary each digit is worth twice as much as the one to the right of it. 111 (1 × 4) (1 × 2) (1 × 1) © ZigZag Education, 2016

Binary Examples Converting from binary (base 2) to decimal (base 10) is straightforward. 16s 8s 4s 2s 1s Working Total 1 (1x16)+(1x2)+(1x1) 19 (1x8)+(1x4)+(1x2) 14 Write out the value of each digit at the top of a column. Add together the value of the columns with a 1 in. © ZigZag Education, 2016 4

Denoting Bases As the digits look the same, subscripts are used to indicate which base a number has been written in. 111110 11112 The subscript 10 states this is a decimal number. The subscript 2 states this is a binary number. © ZigZag Education, 2016

Hexadecimal Numbers in binary can get rather long. Hexadecimal (base 16) shortens the numbers. In hex, each column is worth 16 times the one to the right of it. 1016 = 1610 10016 = 25610 100016 = 409610 Along with 0–9, hexadecimal also uses the letters A–F. A = 10, B = 11, C = 12, D = 13, E = 14, F = 15. A016 = 16010 B0016 = 281610 C00016 = 4915210 © ZigZag Education, 2016

Hexadecimal Examples Converting from hex to denary is also straightforward. 256s 16s 1s Working Total 1 2 3 (1×256)+(2×16)+(3×1) 291 A B C (10×256)+(11×16)+(12×1) 2748 9276907 Write out the value of each digit at the top of a column. Multiply the value of the column by the number in the column. Add together the totals to get the denary equivalent. © ZigZag Education, 2016 7

Hexadecimal to Binary BA = 01110110 Although computers work purely in binary, hex is used to save space on screen. 0111 0110 Each hex digit has a value between 0 and 15. 89 = 01000101 In binary, this is the same as 0000 to 1111. 0100 0101 To convert a two-digit hex number, start by converting each number individually. A0 = 01100000 Once each individual number has been converted, join the batches of 4 binary digits together to form 8 binary digits. 0110 0000 © ZigZag Education, 2016

Binary to Hexadecimal 01100101 = Binary to hex is also a straightforward process. Group the binary number into batches of four digits (starting at the right-hand end). 01100101 = 0110 0101 6 5 Convert each batch of four digits to a single hex character. Then just join the hex digits back together. © ZigZag Education, 2016

Denary to Binary Converting from denary to binary uses subtraction rather than addition. Example: 230 in decimal to binary Start with the number line showing the values of the digits. 128 64 32 16 8 4 2 1 1 1 1 1 1 230 – 128 = 102 102 – 64 = 38 38 – 32 = 6 6 – 4 = 2 2 – 2 = 0 Locate the largest number you’ll need and put a 1 in that column. Subtract that number from the denary you’re converting and move along the number line. Repeat the process for each column, putting a 0 if the digit isn’t needed and a 1 if it is. © ZigZag Education, 2016

Decimal to Hexadecimal Example: 2468 Divide the denary number by 16. 2400 ÷ 16 = 154 remainder 4 Write down the answer and also write down the remainder as a hex number. 154 ÷ 16 = 9 remainder A Repeat the process, i.e. divide the answer by 16 and write down the remainder. Keep going until the answer is 0 and you have the final remainder. 9 ÷ 16 = 0 remainder 9 The final remainder is the leftmost digit of the hex number, the second digit is the penultimate remainder and the other digits are the remainders in reverse order. 2468 in denary is 9A4 in hex Remember you can always convert to binary first before converting to hexadecimal if you find it easier. © ZigZag Education, 2016

END