© 2003, Cisco Systems, Inc. All rights reserved.

Slides:



Advertisements
Similar presentations
Computer Basics Binary Bits & Bytes
Advertisements

How to Convert Decimal Numbers to Binary EXAMPLES.
Base 10 Denary Decimal
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.
Computer Systems 1 Fundamentals of Computing
CREATED BY, MS. JENNIFER DUKE BITS, BYTES, AND UNITS OF MEASUREMENT.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Revision Introductory Lesson
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Communications Technology 2104 Mercedes Lahey. Bit 1. bit=From a shortening of the words “binary digit” 2. the basic unit of information for computers.
Computer Storage & Representing Numbers CE 311 K - Introduction to Computer Methods Daene C. McKinney.
Aug CMSC 104, LECT-021 Machine Architecture and Number Systems Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY.
Memory Terminology & Data Representation CSCI 1060 Fall 2006.
1 Machine Architecture and Number Systems Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting.
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
DECIMAL BASE Based on power of 10 In the number 2,468 – from right to left -- the 8 represents the ones, the 6 represents the tens, the 4 represents the.
Data Representation A series of eight bits is called a byte. A byte can be used to represent a number or a character. As you’ll see in the following table,
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
Math Review Do you remember, from math class, how exponentiation operations are typically represented? anan is known as the "base" a is known as the "base"
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
NUMBER SYSTEM.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Positional Notation 642 in base 10 positional notation is:
Converting From decimal to Binary & Hexadecimal to Binary
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 2: Floating Point Representation.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
CS 104 Introduction to Computer Science and Graphics Problems Data Representation(1) Number Systems 09/12 ~ 09/16 /2008 Yang Song (Prepared by Yang Song.
Working with 8-bit bytes and hexadecimal
How We Measure Memory. Learning Goal Today we are going to learn how the computer stores information.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Networking for Home and Small Businesses –.  Explain the binary representation of data.
Data Representation (in computer system). Data Representation How do computers represent data? b The computers are digital Recognize.
How We Measure Memory. At the Bottom of things A piece of digital information is always stored as a sequence of binary states. What’s that mean you ask???
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
2.1.4 Data Representation Units.
* Numeral Systems: A writing method for expressing numbers is called a “Numeral System". In the most common numeral system, we write numbers with combinations.
Binary Decimal Hexadecimal
ABFC... Home page Introduction Binary number system Hexadecimal number system Binary coded decimal Objectives Octal number system Click.
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.
Number Systems Part 2. Counting in Binary DecimalBinary
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Understanding Computers
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
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.
Number systems. Binary system. Bits and bytes. Modern computers “speak” in a digital language composed of 2 digits. The machine language of modern computers.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
© OCR 2016 Unit 2.6 Data Representation Lesson 1 ‒ Numbers.
Binary & Hex Review.
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Understanding binary Understanding Computers.
Consider this number: , Ones (7 ones) Tens (no tens)
Memory Parts of a computer
Information Support and Services
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Writer:-Rashedul Hasan. Editor:- Jasim Uddin
इंट्रस्टिंग बनने के लिए आपको इंट्रस्टेड होना पड़ेगा।
How do computers work? Storage.
Computers & Programming Languages
Understanding Binary Basics
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Chapter Four Data Representation in Computers By Bezawit E.
Numeral systems (radix)
Storage.
Binary System.
Binary & Hex Review.
Technology 3 Bits & Bytes.
Computer Systems Nat 4/5 Computing Science Data Representation
Presentation transcript:

© 2003, Cisco Systems, Inc. All rights reserved.

Basics Information

Objectives (Cont.) Convert a decimal number to a binary number Convert a binary number to a decimal number Convert a binary number to a hexadecimal number Convert a hexadecimal number to a binary number Lesson Aim <Enter lesson aim here.>

Units of Information Units Bytes Bits bit (b) — 1 bit byte (B) 1 byte kilobyte (KB) 1000 bytes 8000 bits megabyte (MB) 1 million bytes 8 million bits gigabyte (GB) 1 billion bytes 8 billion bits

Decimal-to-Binary Conversion (r = remainder) 253/2 = 126 r 1 126/2 = 63 r 0 63/2 = 31 r 1 31/2 = 15 r 1 15/2 = 7 r 1 7/2 = 3 r 1 3/2 = 1 r 1 1/2 = 0 r 1 Converting a decimal number (253) to binary by successive division by 2 Write the binary number in order of the last bit first: 11111101

Base 2 Numbering System Number of Symbols 2 2 2 2 2 2 2 2 Symbols 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 Base Exponent 27 26 25 24 23 22 21 20 Place Value 128 64 32 16 8 4 2 1 Example: Convert decimal 35 to binary 1 1 1

Binary-to-Decimal Conversion Convert the binary number 11111101 to a decimal number (Binary bits have decimal values) Decimal Position Value 128 64 32 16 8 4 2 1 1 or 0 1 1 1 1 1 1 0 1 128*1 + 64*1 + 32*1 + 16*1 + 8*1 + 4*1 + 2*0 + 1*1 128 + 64 + 32 + 16 + 8 + 4 + 0 + 1 = 253

Base 2 Number System Number of Symbols 2 Symbols 0, 1 Base Exponent 27 26 25 24 23 22 21 20 Place Value 128 64 32 16 8 4 2 1 Example: Binary Number 1 1 1 1 1 Decimal number Total: 185 128 32 16 8 1

Binary-and-Hexadecimal Systems 00000000 00 1 00000001 01 2 00000010 02 3 00000011 03 4 00000100 04 5 00000101 05 6 00000110 06 7 00000111 07 8 00001000 08 9 00001001 09 10 00001010 0A 11 00001011 0B 12 00001100 0C 13 00001101 0D 14 00001110 0E 15 00001111 0F 16 00010000 10 32 00100000 20 64 01000000 40 128 10000000 80 255 11111111 FF

Binary-and-Hexadecimal Number Systems 0000 = 1000 = 8 0001 = 1 1001 = 9 0010 = 2 1010 = A 0011 = 3 1011 = B 0100 = 4 1100 = C 0101 = 5 1101 = D 0110 = 6 1110 = E 0111 = 7 1111 = F

Binary-to-Hexadecimal Conversion Example 100100100010111110111110111001001 Converts to: 0001 0010 0100 0101 1111 0111 1101 1100 1001 Converts to: 1 2 4 5 F 7 D C 9 So: 100100100010111110111110111001001 Binary = 1245F7DC9 hexadecimal

Hexadecimal-to-Binary Conversion Example Converts to: 2 1 0 2 0010 0001 0000 0010 So: 2102 hexadecimal converts to: 0010 0001 0000 0010 binary

Summary (Cont.) Computers can recognize and process data only by using the binary numbering system. The binary number system is made up of 0s and 1s. Decimal numbers can be converted to binary numbers by following specific procedures. The hexadecimal number system is used frequently at higher levels of computation. The hexadecimal number system uses 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F.