Lecture-03.3

# Lecture-03.3 - Chapter 3 Data Representation Data and...

This preview shows pages 1–3. Sign up to view the full content.

Chapter 3 Data Representation Data and computers – Ch. 3.1 everything inside a computer is stored as patterns of 0s and 1s. numbers, text, audio, video, images, graphics, etc. how do you convert it to 0s and 1s. how do you store the 0s and 1s efficiently. Representing Numeric data – Ch. 3.2 Representing Negative Number (Integers) Basic Definition an integer is a number which has no fractional part Examples: +123 -67 General Property Number of digits Min Max n 0 1 - n b Integers (Signed, natural numbers) previously: unsigned numbers only, i.e. natural numbers need mechanism to represent both positive and negative numbers two schemes: 1) sign-magnitude, 2) complementary representation CSE 1520 – Lecture 3.3 January 18, 2011 page 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Sign-Magnitude in binary: sign: left-most bit (0 = positive, 1 = negative) magnitude: remaining bits Example: (using 6-bit sign-magnitude representation) +5 = 000101 -5 = 100101 Ranges Binary Unsigned Sign-Mag Number of bits
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 02/05/2011 for the course ECON 1000 taught by Professor Paschakis during the Spring '08 term at York University.

### Page1 / 6

Lecture-03.3 - Chapter 3 Data Representation Data and...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online