 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.

Slides:



Advertisements
Similar presentations
Intro to CS – Honors I Representing Numbers GEORGIOS PORTOKALIDIS
Advertisements

Candidates should be able to:
DATA REPRESENTATION CONVERSION.
Agenda Shortcuts converting among numbering systems –Binary to Hex / Hex to Binary –Binary to Octal / Octal to Binary Signed and unsigned binary numbers.
Number Systems. 2 The total number of allowable symbols in a number system is called the radix or base of the system. Decimal Numbers: radix = 10 (symbols:
Math 009 Unit 4 Lesson 1.
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.
Binary and Decimal Numbers
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Binary, Decimal, & Hexadecimal Numbers
2.1 2 Number Systems Foundations of Computer Science  Cengage Learning.
Binary Numbers.
© 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.
Binary and Hexadecimal Numbers
Number Systems.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Numbering systems.
Positional Number Systems
HUNDREDTHS One of one hundred equal parts Example:
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
1 Problem Solving using computers Data.. Representation & storage Representation of Numeric data The Binary System.
Data Representation in Computer Systems. 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers.
Number systems, Operations, and Codes
Number Representation. Representing numbers n Numbers are represented as successive powers of a base, or radix.
© 2010 Cisco Systems, Inc. All rights reserved. 1 Network Math.
Lesson 8 – Binary Numbers Computer Programming 12.
CISC1100: Binary Numbers Fall 2014, Dr. Zhang 1. Numeral System 2  A way for expressing numbers, using symbols in a consistent manner.  " 11 " can be.
CPIT 201 Introduction to Computing
AEEE2031 Data Representation and Numbering Systems.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Binary A double zero educational presentation. Binary Basics Binary is the language computers use Only 1’s and 0’s can be found in Binary Very large numbers.
Candidates should be able to:
MODULE –I NUMBER SYSTEM Digital Design Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
Introduction To Number Systems Binary System M. AL-Towaileb1.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
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.
CPIT 201 King AbdulAziz University Faculty of Computing & Information Technology Information Technology Department CH 2 Number Systems CPIT 201 Introduction.
© 2016 AQA. Created by Teachit for AQA Number bases and Units of information Lesson.
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.
Appendix F Number Systems binary 0, 1 0, 1, 2, 3, 4, 5, 6, 7
Decimal Numbers.
Introduction To Number Systems
Converting Fractions into Decimals into Percents & Vice Versa
Consider this number: , Ones (7 ones) Tens (no tens)
Discrete Mathematics Numbering System.
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Binary Positional Notation
BINARY CODE.
Converting Fractions into Decimals & Vice Versa
COMPUTING FUNDAMENTALS
Number Systems Lab session 1 Xuan Guo.
Number Systems.
Fundamentals & Ethics of Information Systems IS 201
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
Binary Lesson 2 Bytes.
Copyright © 2007 by Mosby, Inc.
Topic 1: Data Representation
Chapter 2: Number Systems
COMS 161 Introduction to Computing
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.
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.
Chapter 2 Number Systems.
Copyright © Cengage Learning. All rights reserved.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
CHAPTER 69 NUMBER SYSTEMS AND CODES
Chapter 2 Number Systems.
Section 6 Primitive Data Types
Presentation transcript:

 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  Another name for binary is base-2 (pronounced "base two") 2

 The numbers that we are used to seeing are called decimal numbers.  decimal numbers consist of the digits from 0 (zero) through 9.  The following are examples of decimal #'rs  Another name for decimal numbers are base-10 (pronounced "base ten") numbers. 3

 Every Binary number has a corresponding Decimal value (and vice versa)  Examples: Binary NumberDecimal Equivalent ……

 Even though they look exactly the same, the value of the binary number, 101, is different from the value of the decimal number, 101.  The value of the binary number, 101, is equal to the decimal number five (i.e. 5)  The value of the decimal number, 101, is equal to one hundred and one  When you see a number that consists of only ones and zeroes, you must be told if it is a binary number or a decimal number. 5

 All information that is processed by computers is converted in one way or another into a sequence of numbers. This includes  numeric information  textual information and  Pictures  Therefore, if we can derive a way to store and retrieve numbers electronically this method can be used by computers to store and retrieve any type of information. 7

 Computers Store ALL information using Binary Numbers  Computers use binary numbers in different ways to store different types of information.  Common types of information that are stored by computers are :  Whole numbers (i.e. Integers). Examples: etc  Numbers with decimal points. Examples: etc  Textual information (including letters, symbols and digits)  Keep reading … 9

 Each position for a binary number has a value.  For each digit, m`ultiply the digit by its position value  Add up all of the products to get the final result  The decimal value of binary 101 is computed below: X 1= 1 0 X 2 = 0 1 X 4 =

 In general, the "position values" in a binary number are the powers of two.  The first position value is 2 0, i.e. one  The 2nd position value is 2 1, i.e. two  The 2nd position value is 2 2, i.e. four  The 2nd position value is 2 3, i.e. eight  The 2nd position value is 2 4, i.e. sixteen  etc. 12

 The value of binary is decimal 105. This is worked out below: X 1= 1 0 X 2 = 0 0 X 4 = 0 1 X 8 = 8 0 X 16 = 0 1 X 32 = 32 1 X 64 = 64 0 X 128 = Answer:

 The value of binary is decimal 156. This is worked out below: X 1= 0 0 X 2 = 0 1 X 4 = 4 1 X 8 = 8 1 X 16 = 16 0 X 32 = 0 0 X 64 = 0 1 X 128 = Answer:

 The following are some terms that are used in the computer field  Each digit of a binary number is called a bit.  A binary number with eight bits (i.e. digits) is called a byte. 15

 There are two different binary numbers with one bit:  0  1  There are four different binary numbers with two bits:  00(i.e. decimal 0)  01(i.e. decimal 1)  10(i.e. decimal 2)  11(i.e. decimal 3) 16

 There are 8 different binary numbers with 3 bits:  000(i.e. decimal 0)  001(i.e. decimal 1)  010(i.e. decimal 2)  011(i.e. decimal 3)  100(i.e. decimal 4)  101(i.e. decimal 5)  110(i.e. decimal 6)  111(i.e. decimal 7) 17

 For n bits there are 2 n different binary numbers: # of bits# of different binary numbers 1 bit: 2 1 = 2 2 bits: 2 2 = 4 3 bits: 2 3 = 8 4 bits: 2 4 = 16 5 bits: 2 5 = 32 6 bits: 2 6 = 64 7 bits: 2 7 = bits: 2 8 = bits: 2 9 = bits: 2 10 = 1024 etc. 18

 The smallest value for a binary number of any number of bits is zero.  This is the case when all bits are zero. 19

 The smallest value for a binary number with any number of bits is zero (i.e. when all the bits are zeros) # of bitssmallest binary #decimal value 1 bit:00 2 bits:000 3 bits: bits: bits: bits: bits: bits: etc. 20

 The largest value for a binary number with a specific number of bits (i.e. digits) is when all of the bits are one.  General rule: for a binary number with n bits, the largest possible value is : 2 n

 The following are the largest values for binary numbers with a specific number of bits: # of bitslargest binary #decimal value 1 bit:11 2 bits:113 3 bits: bits: bits: bits: bits: bits: etc. 22

 The prefix "bi" means "two" in Latin  Binary derives its name from the fact that the digits in a "Binary" number can only have two possible values, 0 or 1  It is also called "base-2" based on the fact that the column values are the powers of 2. (i.e etc. ) 23