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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

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 Right Arrow Icon
Ask a homework question - tutors are online