Binary number, Bits and Bytes and memory Sen Zhang.

Slides:



Advertisements
Similar presentations
1 Chapter 2 The Digital World. 2 Digital Data Representation.
Advertisements

Digital Fundamentals Floyd Chapter 2 Tenth Edition
Binary number, Bits and Byte
Binary and Hexadecimal Numbers
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
assumes basic arithmetic
Binary and Decimal Numbers
Introduction to Information Technology
SIMS-201 Representing Information in Binary. 2  Overview Chapter 3: The search for an appropriate code Bits as building blocks of information Binary.
IT-101 Section 001 Lecture #4 Introduction to Information Technology.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Exponents Scientific Notation
Computer Systems 1 Fundamentals of Computing
Representing Information in Binary (Continued)
Data Representation Number Systems.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Memory Terminology & Data Representation CSCI 1060 Fall 2006.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
Numbering systems.
Positional Number Systems
Numeral Systems Subjects: Numeral System Positional systems Decimal
Numbering Systems CS208.
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
IT-101 Section 001 Lecture #3 Introduction to Information Technology.
Chapter P Prerequisites: Fundamental Concepts of Algebra
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Computer Math. The Decimal System How do we represent “One Hundred and Twenty Five”? How do we represent “One Hundred and Twenty Five”? Simple: 125 !!!
Bits & Bytes Created by Chris McAbee For AAMU AGB199 Extra Credit Created from information copied and pasted from
Data Representation in Computer Systems. 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers.
Lecture Binary and Hexadecimal Numbers. How Machines Think Computers handle two types of information: –Instructions –Data The "words" of a machine language.
Number Representation. Representing numbers n Numbers are represented as successive powers of a base, or radix.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Bits and Bytes. Decimal Numbers 6,357 has four digits -base-10 (6 * 1000) + (3 * 100) + (5 * 10) + (7 * 1) = = 6357 (6 * 10^3) + (3.
Number Systems Revision of conversations What is a register Addition Complementation.
Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.
Computer Math CPS120 Introduction to Computer Science Lecture 4.
Visualizing Decimal and Binary
Data Representation The storage of Text Numbers Graphics.
Number Systems by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
Computer Math CPS120: Binary Representations. Binary computers have storage units called binary digits or bits: Low Voltage = 0 High Voltage = 1 all bits.
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
PHY 201 (Blum)1 Shift registers and Floating Point Numbers Chapter 11 in Tokheim.
Computer Number System
Binary number, Bits and Byte IITG Project Team. Outline Defining the following terms from decimal counting system Positional weight Significance order,
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.
Computer Math CPS120 Introduction to Computer Science Lecture 7.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
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.
CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System.
Number systems. Binary system. Bits and bytes. Modern computers “speak” in a digital language composed of 2 digits. The machine language of modern computers.
 Human language : commonly used to express feeling and understand what other people expression.  Computer language : are a languages by which a user.
© OCR 2016 Unit 2.6 Data Representation Lesson 1 ‒ Numbers.
Binary & Hex Review.
3.1 Denary, Binary and Hexadecimal Number Systems
What is Binary? Binary is a two-digit (Base-2) numerical system, which computers use to process and store data. The reason computers use the binary system.
COMPUTING FUNDAMENTALS
Number System conversions
Data Representation Numbers
Binary Numbers Material on Data Representation can be found in Chapter 2 of Computer Architecture (Nicholas Carter) CSC 370 (Blum)
Binary and Hexadecimal Numbers
Information Representation
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Chapter Four Data Representation in Computers By Bezawit E.
William Stallings Computer Organization and Architecture 10th Edition
Information Technology Department
LO1 – Understand Computer Hardware
Binary & Hex Review.
Basic Computer Organization
UNIT – 3 & 4. Data Representation and Internal
Presentation transcript:

Binary number, Bits and Bytes and memory Sen Zhang

Number systems –Decimal –Binary –Bits –bytes –Numbers conversion among different systems

Binary to Decimal To convert 1011 to its decimal value 1011 (It reads one zero one one in binary number) = = (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (1 * 2^0) = = 11 (it reads eleven in decimal system) It is wrong to read 1011 one thousand and eleven, if you know it is a binary number.

Decimal to Binary Keep dividing the decimal number by 2 An Example to convert to binary value / 2 = 118 Remainder | 118 / 2 = 59 Remainder | | 59 / 2 = 29 Remainder | | | 29 / 2 = 14 Remainder | | | 14 / 2 = 7 Remainder | | | | 7 / 2 =3 Remainder | | | | | 3 / 2 = 1 Remainder | | | | | | | 1 / 2 = 0 Remainder | | | | | | | | v v v v v v v v In the reversed order to get the result! The result!

The above two slides should be enough for you to prepare exam. However, you should proceed reading the rest of the slides for better understanding to binary system if you are interested in computing technology.

Number systems –Decimal –Binary –Bits –bytes –Numbers conversion among different systems

In this lecture, we will discuss bits and bytes, binary and decimal numbers in detail so that you will gain a fundamental understanding to their meanings and what these systems are and how they work. To help you understand, let's first review the well known decimal number system.

The Decimal Number System The decimal system is the base-10 system that we use every day. A number, say 6357, represented in the base-10 system consists of multiple ordered digits. (In other words, digits are normally combined together in groups to create larger numbers.) A digit is a single place that can hold numerical values between 0 and 9 (10 different values).

Let us start from an arbitrary decimal number For example, 6,357 has four digits. It is understood that in the number 6,357, –the 7 is filling the "1s place," –while the 5 is filling the 10s place, –the 3 is filling the 100s place –and the 6 is filling the 1,000s place. So you could express 6,357 this way if you want to be explicit: (6 * 1000) + (3 * 100) + (5 * 10) + (7 * 1) = = ^3

Continue.. Another way to express it would be to use the concept of powers of 10. A specific digit is associated with a specific weight expressed as powers of 10. The first digit (counting from the right) gives 10 to the 0 power, the second digit gives 10 to the 1 power, and so on.

Exponents are a shorthand way to show how many times a number, called the base, is multiplied times itself. A number with an exponent is said to be "raised to the power" of that exponent. Assuming that we are going to represent the concept of "raised to the power of" with the "^" symbol. "10 squared“ or 10 to the power of 2 is written as "10 ^2 " 10 to the fourth power is denoted 10 ^4

Thus, another way to express the previous number is like this: (6 * 10 ^3 ) + (3 * 10 ^2 ) + (5 * 10 ^1 ) + (7 * 10 ^0 ) = = 6357

But why do we human beings use 10 based number system?

How to count? Fingers and toes? Cuts on trunk? – (23) –11111 (five) – (28) – (17 ) Number system and calculating system –1, 2, …5 10, 11, … 23 –23+5=28 –23-5=17

The most commonly accepted explanation is that our base-10 number system was adopted by our ancestors most likely because we have 10 fingers. Interestingly enough, that is why digit in English also means a finger or toe.

We have reasons to ask a question in our minds: –“If we happened to evolve to have eight fingers instead, would we probably have a base-8 number system?” The answer is probably YES!

Any other number systems? The good news about number systems is that it is not the only choice to have 10 different values in a digit. Actually, we can have base-anything number systems from a theoretical point of view. There are many good reasons to use different bases in different situations. For example, 7 days/week, 12 months/year

A generalized rule The following rules apply to base 10 and to any other base number system: –The system of base n requires n different symbols or values. –The left most digit is the highest-order digit and represents the most significant digit, while the lowest-order digit is the least significant digit. –A digit is represented as powers of the system's base.

Computers happen to operate using the base-2 number system, also known as the binary number system, just like the base-10 number system is known as the decimal number system to human beings.

The fundamental point Modern computers use binary number system, in which there are only zeros and ones. (Only two symbols) A “bit” to binary is similar a “digit” to a decimal information. (Again, the easiest way to understand bits is to compare them to something you know: digits.) A bit has a single binary value, either 0 or 1.

Binary vs. Decimal Binary is a base two system which works just like our decimal system. Considering the decimal number system, it has a set of values which range from 0 to 9. The binary number system is base 2 and therefore requires only two digits, 0 and 1.

The fundamental point Binary representation of numbers and other information is the representation which can be understood by computer chips and can be saved in memory. It is important to computers because all computer data is ultimately represented by a series of zeros and ones, no matter you realize it or not.

Since the computer is really made up of tiny switches that can be either OFF or ON, you can look at a binary number as a series of light switches. A 1 represents a switch that is ON, and a 0 means a switch that is OFF.

Bits The binary number system uses binary digits (bits) in place of decimal digits. A binary number is composed of only 0s and 1s, like this: has four bits How do you figure out what the value of the binary number 1011 is in decimal world?

How does it work? As we have shown that our decimal system is based on place or location. That is, the place of each digit decides the value of that digit. The binary system works in exactly the same way, except that its place value is based on the number two.

What is the value of the binary number 1011? Therefore we have the one's place, the two's place, the four's place, the eight's place, the sixteen's place, and so on. Each place in the number represents two times (2X's) the place to its right. An example (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (1 * 2^0) = = 11

decimal to binary Keep dividing the decimal number by 2 Ex 2 : / 2 = 118 Remainder | 118 / 2 = 59 Remainder | | 59 / 2 = 29 Remainder | | | 29 / 2 = 14 Remainder | | | 14 / 2 = 7 Remainder | | | | 7 / 2 =3 Remainder | | | | | 3 / 2 = 1 Remainder | | | | | | | 1 / 2 = 0 Remainder | | | | | | | | v v v v v v v v In the reversed order!

1 bit 1 byte 8 bits

A bit A ‘bit’ (from Binary + digIT) is the smallest unit of memory, also the unit of measurement of data information.

Bytes Since a single bit holds so little information, bits are rarely seen alone in computers. They are almost always bundled together into 8-bit collections, and these collections are called bytes. Bytes, larger units, then are treated as integral units of storage.

1 bit 1 byte = 8 bits 1 kb = 2 10 bytes = 1024 bytes != Mb = 1 k k bytes = 2 10 * 2 10 bytes 1 G b = 2 10 * 2 10 * 2 10 bytes 1 Terab = 2 10 * 2 10 * 2 10 * 2 10 bytes

Even larger capacity 1 petabyte = 2 10 * 2 10 * 2 10 * 2 10 * 2 10 bytes (2 to the 50th power ) 1 exabyte= zettabyte = yottabyte = 2 80

Some interesting facts about what these various-sized bytes can store: 1 bit: a binary decision 1 byte: a character 5 Megabytes: The complete works of Shakespeare 2 Gigabytes: 20 meters of shelved books 10 Terabytes: The printed collection of the US Library of Congress 200 Petabytes: All printed material in the whole word. 5 Exabytes: All words ever spoken by human beings

Memory Where to save binary numbers in computer? In memory! What is memory? Memory is a space where you can save binary values, consisting of a sequence of units (counted in bytes).

CPU processes binary number The first microprocessor to make it into a home computer was the Intel 8080, a complete 8-bit computer on one chip, introduced in 1974.

END