Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Information Representation
Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
Representing Data, Pictures, Time, and Size in Computer
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Representing Information as Bit Patterns
Overview Digital Systems and Computer Systems Number Systems [binary, octal and hexadecimal] Arithmetic Operations Base Conversion Decimal Codes [BCD (binary.
Data Representation in Computers
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Introduction to Information Technology
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Representing Information in Binary (Continued)
COMPUTER FUNDAMENTALS David Samuel Bhatti
©Brooks/Cole, 2003 Chapter 2 Data Representation.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Introduction to Number Representation F451 Year 10 Computing Binary Numbers Binary Numbers Sign/Magnitude Sign/Magnitude 2s Complement 2s Complement Binary.
Bits & Bytes: How Computers Represent Data
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
IT-101 Section 001 Lecture #3 Introduction to Information Technology.
Computer Math CPS120: Data Representation. Representing Data The computer knows the type of data stored in a particular location from the context in which.
Chapter 3 Data Representation
Binary Arithmetic & Data representation
Representing Data. Representing data u The basic unit of memory is the bit  A transistor that can hold either high or low voltage  Conceptually, a tiny.
Binary Code
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
CS151 Introduction to Digital Design
1 Pertemuan 2 Network Math. Discussion Topics Binary presentation of data Bits and bytes Base 10 number system Base 2 number system Converting decimal.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
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.
1 Data Representation Characters, Integers and Real Numbers Binary Number System Octal Number System Hexadecimal Number System Powered by DeSiaMore.
EET 250 Number systems. Introduction to Number Systems While we live in a world where the decimal number is predominant in our lives, computers and digital.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Data Representation, Number Systems and Base Conversions
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Codes Octal Power Hexadecimal ASCII BCD Code
Agenda Character representation Numerical Conversions ASCII EBCDIC
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
Systems Architecture, Fourth Edition 1 Data Representation Chapter 3.
Data Encoding COSC Computers and Data Computers store information as sequences of bits Computers store many types of data: numbers text audio images.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
ASCII AND EBCDIC CODES By : madam aisha.
Characters and Strings
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
Fall’ 2014 Lesson - 1 Number System & Program Design CSE 101.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
CHAPTER 3 BINARY NUMBER SYSTEM. Computers are electronic machines which operate using binary logic. These devices use two different values to represent.
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.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Binary Representation in Text
Unit 2.6 Data Representation Lesson 2 ‒ Characters
Chapter 3 - Binary Numbering System
Number Systems and Codes
3.1 Denary, Binary and Hexadecimal Number Systems
EPSII 59:006 Spring 2004.
Chapter 3 Data Representation
Number Systems.
Data Encoding Characters.
Data Representation Question: Characters
Number Systems and Codes
Ch2: Data Representation
Dr. Clincy Professor of CS
COMS 161 Introduction to Computing
COMS 161 Introduction to Computing
Chapter 3 - Binary Numbering System
Presentation transcript:

Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis

2 Binary Coded Decimal Binary coded decimal (BCD) is a different approach Encodes each digit in the decimal number individually rather than converting the entire number To convert 30 to BCD, the 3 would first be converted into binary, and then 0 would be converted into binary Then the two binary strings would be concatenated (i.e. brought together) to represent the number 30 Information Technology in Theory

3 Binary Coded Decimal (continued) Information Technology in Theory

4 BCD Example Convert the decimal number 7244 (10) into binary coded decimal 7 = = = (10) = (2) (BCD) Information Technology in Theory

5 BCD Example (continued) Convert the sequence into decimal First break the sequence into groups of four starting from right to left: Then convert each group into decimal: 0001 (2) = 1 (10) 1000 (2) = 8 (10) 0111 (2) = 7 (10) 1001 (2) = 9 (10) The answer is 1879 (10) Information Technology in Theory

6 Representing Text and Other Characters in Binary Binary code can represent text and alphanumeric characters Two standards: –ASCII –Unicode Information Technology in Theory

7 ASCII Extended ASCII assigns an 8-bit code for each alphanumeric character Recall that an 8-bit code can represent 2 8, or 256, unique items Information Technology in Theory

8 Segment of ASCII Chart Information Technology in Theory

9 ASCII Example H= e= l= o= != Therefore, “Hello!” = The hexadecimal shorthand for this binary sequence is C 6C 6F 21 Information Technology in Theory

10 Unicode Unicode is an important standard that uses 16 bits Allows for a representation of 2 16 (more than 65,000) unique characters Provides sufficient characters to encode many different major languages (such as English, Arabic, and Chinese) Unicode charts may be found by visiting Information Technology in Theory

11 EBCDIC Extended Binary Coded Decimal Interchange Code Standard associated with IBM computers Assigns 8 bits per character An extension of binary coded decimal Information Technology in Theory

12 Summary Bits can encode any type of information, including the decimal numbers we use in everyday life and alphanumeric text A real-world example of binary to decimal conversion is the unique Internet address –Encoded in dotted decimal format –Makes a long binary string easier for people to read You can also convert between binary and positive integers and represent negative integer and positive noninteger numbers in binary Information Technology in Theory

13 Summary (continued) Alternative numbering systems are octal, which uses eight numbers, and hexadecimal, which uses 16 numbers –Not used by digital devices, but by people as a shorthand convention –Network identification in local area networks is usually represented in hexadecimal Binary code also represents alphanumeric characters –ASCII –Unicode –EBCDIC Information Technology in Theory