Number Representations What all the numbers can mean.

Slides:



Advertisements
Similar presentations
Data Representation. Units & Prefixes Review kilo, mega, and giga are different in binary! bit (b) – binary digit Byte (B) – 8 binary digits KiloByte.
Advertisements

Computer Science 101 Picture Files. Computer Representation of Pictures Common representation is as a bitmap. Common representation is as a bitmap. Two.
Information Representation
1 Chapter 2 The Digital World. 2 Digital Data Representation.
How Computers Represent Numbers Friday, Week 5. Binary Code A series of 1’s and 0’s Place value is in powers of 2.
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,
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Chapter 5 Data representation.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Lecture 5.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Bits & Bytes: How Computers Represent Data
Data and Program Representation
Working with text ASCII and UNICODE.   
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
Representing Nonnumeric Data Everything is really a number.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Chapter 2 Computer Hardware
Binary Code.
Data Representation and Storage Lecture 5. Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand.
Text and Graphics September 26, Unit 3.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
1 3 Computing System Fundamentals 3.5 Data Representation.
Representing Characters in a computer Pressing a key on the computer a code is generated that the computer can convert into a symbol for displaying or.
Data Representation The storage of Text Numbers Graphics.
CS 111 – Sept. 3 More data representation Review hex notation Text –ASCII and Unicode Sound and images Commitment: –For Wednesday: Please read pp
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
Representation of Characters
Technology in Action Chapter 6 Behind the Scenes: A Closer Look at System Hardware.
Data Representation.
M204 - Data Representation
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
Representing Characters in a Computer System Representation of Data in Computer Systems.
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Understanding Computers
CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
1.4 Representation of data in computer systems Character.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Text and Images Key Revision Points.
DATA REPRESENTATION - TEXT
Storing Graphics Nat 5 Data Representation Lesson 4a: Storing Graphics
Understanding binary Understanding Computers.
Unit 2.6 Data Representation Lesson 2 ‒ Characters
Lesson Objectives Aims You should be able to:
Bitmap Basics Review Refresher from Year 8.
Binary 1 Basic conversions.
Computer Systems Nat 4/5 Data Representation Lesson 4:
Data Transfer ASCII FILES.
Bits & Bytes How Computers Represent Data
Data Encoding Characters.
TOPICS Information Representation Characters and Images
Representing Nonnumeric Data
Folders out, planners out…
Data Representation Question: Characters
Digital Representation
Binary Data representation
Chapter 2 Data Representation.
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
Digital Encodings.
How Computers Store Data
Learning Intention I will learn how computers store text.
Presentation transcript:

Number Representations What all the numbers can mean.

General Idea In a computer, all information is binary numbers Those numbers have to be interpreted to become the information we want In other words, numbers can represent other things. Another way to think of Digital is “representable by numbers”

ASCII American Standard Code for Information Interchange cipher(code) to convert numbers to symbols 1 byte = letter of the alphabet or a symbol when you type, the keyboard sends an ASCII byte to the PC There are 256 possible characters (the number of numbers that can be represented by 1 byte)

ASCII examples ! = 51(33h) A to Z = 65(41h) to 90(5Ah) a to z = 97(61h) to 122(7Ah)

ASCII Exercise Hello! LetterHello! Hex48h65h6Bh 6Fh33h Bin

ASCII Weaknesses? Think about other languages – you can’t fit ALL those symbols into 256 characters

Unicode Unicode (Also called UTF-8) allows up to 4 byes to represent a single character How many different characters possible? 4,294,967,296 (2 32 ) in theory 2,147,483,648 (2 31 ) in real life still enough for every language on earth (including fictional ones like Klingon and Elvish)

Other ways computers use numbers This means nothing to us:

cont. But what about this? or this?

Bitmaps a computer interprets an image as a bitmap: a series of bits that represent pixels (picture elements) What about colors?

Colors normally, one pixel is 3 bytes (24-bits) 1 byte for each primary color (RGB) FF is bright red 00 FF FF is bright cyan (G & B) is dark grey FF 00 FF is bright magenta (R & B) So how many different colors are there?

Understanding A megapixel is a million pixels. If the color is 24-bit, how many bytes is a megapixel? How many megabytes? Cameras are now commonly 5 megapixel (or more)

Cameras: Megapixel Myth 1 MP(megapixel) = a million pixels An image 1000 pixels wide and 1000 pixels tall is a megapixel (1000x1000) So how wide and tall is a 2 MP image? 1414x1414 (the SQUARE ROOT of 2 mil.) You’d need 4MP to double the image quality (math: exponential relationship) So the quality difference between 7 and 8 MP is actually pretty small. DON’T pay the extra $100 for the extra megapixel.

Final Point A computer sees a bunch of numbers and does math to them. What those numbers mean depend on the instructions given to the computer Are those 1s and 0s a picture? a document? music? It all depends on what we tell the computer to do with those bits.