Week 4 Number Systems.

Slides:



Advertisements
Similar presentations
Review of HTML Ch. 1.
Advertisements

1 Chapter 2 The Digital World. 2 Digital Data Representation.
The Binary Numbering Systems
SECTION 4a Transforming Data into Information.
Review Ch.1,Ch.4,Ch.7. Review of tags covered various header tags Img tag Style, attributes and values alt.
Representing Information as Bit Patterns
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Number Representation (1) Fall 2005 Lecture 12: Number Representation Integers and Computer Arithmetic.
Chapter 2 Data Types, Declarations, and Displays
Data Representation in Computers
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Data Representation 3 This week – Recap on Floating point number – ASCII – unicode.
Representing Information in Binary (Continued)
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text.
Unicode, character sets, and a a little history. Historical Perspective First came EBCIDIC (6 Bits?) Then in the early 1960s came ASCII – Most computers.
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Globalisation & Computer Systems week 5 1. Localisation presentations 2.Character representation and UNICODE UNICODE design principles UNICODE character.
Numbers and Number Systems
Computing Higher - Unit 1… Computer Systems 1 Higher Computing Unit 1 – Topic 1 Data Representation.
CMPT 120 How computers run programs Summer 2012 Instructor: Hassan Khosravi.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Computer Math CPS120: Data Representation. Representing Data The computer knows the type of data stored in a particular location from the context in which.
Globalisation & Computer systems Week 4 writing systems and their implications for globalisation character representation ASCII extended ASCII code pages.
Transforming Data into Information.
Computer Structure & Architecture 7c - Data Representation.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Number Systems Spring Semester 2013Programming and Data Structure1.
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.
Globalisation & Computer systems Week 5/6 Character representation ACII and code pages UNICODE.
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.
Computer Math CPS120: Lecture 3. Binary computers have storage units called binary digits or bits: Low Voltage = 0 High Voltage = 1 all bits have 0 or.
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.
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.
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, Number Systems and Base Conversions
The character data type char. Character type char is used to represent alpha-numerical information (characters) inside the computer uses 2 bytes of memory.
Representation of Characters
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
1 Problem Solving using Computers “Data....Representation, and Storage.
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,
© 2001, Penn State University Encoding on the Internet Elizabeth J. Pyatt CETS.
DATA REPRESENTATION 4 Y. Colette Lemard February 2009.
Representing Characters in a Computer System Representation of Data in Computer Systems.
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
THE CODING SYSTEM FOR REPRESENTING DATA IN COMPUTER.
1.4 Representation of data in computer systems Character.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Text and Images Key Revision Points.
Binary Representation in Text
Binary Representation in Text
Programming and Data Structure
3.1 Denary, Binary and Hexadecimal Number Systems
Chapter 3 Data Storage.
Data Encoding Characters.
TOPICS Information Representation Characters and Images
Data Representation ASCII.
Representing Characters
Data Representation Question: Characters
Data Representation Conversion 05/12/2018.
Fundamentals of Data Representation
Storing Negative Integers
How Computers Store Data
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Learning Intention I will learn how computers store text.
LO1 – Understand Computer Hardware
Transforming Data into Information
Chapter 3 - Binary Numbering System
ASCII and Unicode.
Presentation transcript:

Week 4 Number Systems

Large numbers in metric

Bytes The bits in a computer are grouped into larger units. A group of eight bits is called a byte. A byte can be used to store 2^8 values - 256 different values. These values can be numeric values or alphanumeric values.

Question

Large Numbers

ASCII When bytes are used to hold characters a code must be used to represent which numeric value will represent which character. The most common code is the American Standard Code for Information Interchange(ASCII). One byte can hold one character.

ASCII (Contd) The letters of the alphabet and the ten characters 0 to 9 are called alphanumeric When there are a number of characters stored together they are called strings of characters. In ASCII the code for the letter A is 6510 or 4116. In ASCII the code for the string of Alphanumeric Characters 36 is the ASCII code for 3 followed by the ASCII code for 6.

ASCII (Contd) The ASCII code for 3 is 5110 or 3316 Therefore it takes two bytes of memory to store the alphanumeric string 36, one byte for each character. Contrast this with the numeric value for 3610 which is 2416

Contd When a byte is used to represent a number, the 256 different byte values can either be interpreted as all positive numbers ranging from 0 to 25510. To allow for negative numbers, the possible range can be divided in half to allow for representation of negative and positive numbers ranging from -12810 through +12710.

Contd All positive are referred to as unsigned numbers 0 to 25510 Positive and Negative are referred to as signed -12810 to + 12710 A typical 1 byte register in a computer may look like the one below.

Contd If the number is unsigned then the largest number that can be represented is 25510 or 28 -1 Why ? There are 256 possible values in the range 0 to 255. If the number is signed then bit 8, (2^7), the most significant bit, is reserved as the sign bit.

Contd The sign bit tells whether the number is (+), positive, or whether the number is (-), negative. A “0” in the sign bit means that the number is positive. A “1” in the sign bit means that the number is negative.

WORD To handle larger numbers, several bytes are used together as a unit, often called a word. For different computers, different meanings are given to the term word but it could represent either 2 bytes (16 bits) or four bytes (32 bits) or 8 bytes (64 bits).

Word (Contd) A two byte word has 2^16 different possible values. The 16 bit word can be used to store unsigned numbers with a range through 0 to 65,53510. Therefore the largest unsigned number available using 2 bytes is (2^16 -1).

Extended ASCII 8 Bit code also known as Latin 1. Mostly Latin letters and accents and diacritical marks used for example in French and German. Problem: Russian and Arabic have totally different alphabets.

Code Page A set of 256 characters for a particular language or group of languages. EG. International standard (I.S) 8859-2 handles Latin based Slavic Languages- Czech, Polish and Hungarian. E.G. International standard (I.S) 8859-3 handles the characters needed For Turkish , Maltese, Esperanto and Galician.

Code Page Problem: it is impossible to mix languages on different pages. ### Does not cover Japanese or Chinese.

UNICODE Unicode is replacing ASCII as the coding standard for characters. The basic idea to assign every character and symbol a unique 16 bit value called a code point. If you have a 16 bit code how many symbols can you represent?

Contd As the world's languages contain roughly 200,000 symbols, code points are a scarce resource. The resource must be carefully guarded and assigned with care. Problem: Chinese and Japanese have fewer code points allocated than symbols needed. Many are not happy with compromises that have been made.

ASCII Problem While computers can represent 256 names for letters, no one agrees on what letters the numbers 128-256 stand for. That’s why your Mac Cayuga font shows up as gibberish on a Windows computer. The number ‘250’ doesn’t mean the same thing on a Mac as it does on a Windows PC.

UNICODE, Fixing ASCII Problem Unicode aims to provide a unique name for every letter ever used…on the planet. It has room for 1,000,000 names. Everyone agrees on what letters the names stand for. Technical details not discussed here: getting from names like ‘U+0061’ to the letter ‘a’ on your computer.

UNICODE, Advantages (Not quite yet, but in the near future) when you type in Cayuga, it will appear as Cayuga on any other computer. The same goes for web pages…

Task for you Unicode version 4 incorporates a 32 bit code version and therefore can now represent all of the world's characters in it's character coding system. The Unicode URL is: http://www.unicode.org/ If you wish to research this further.

Thank You