








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of how data is represented in computing systems, focusing on character data using ascii code and signed integer data using both sign-magnitude and 2s complement representations. Additionally, it covers real data representation using the ieee floating point standard.
Typology: Slides
1 / 14
This page cannot be seen from the preview
Don't miss anything!









2 How is Data Represented?
4
represents the value
2 0
1 n i i
least significant bit (lsb) Example: In 8 bits 13 is represented as 00001101
5 Alternative: 2s Complement Representation x (^) n 1 xn 2 x 0 ... The n bit quantity represents the signed integer value
2 0 1 1 2 2 n i i i n x n x least significant bit Example: In 8 bits 13 is represented as 00001101
7 Which Representation is Better?
Speed of arithmetic (addition, multiplication) Speed of comparison Range of values that can be represented
8 How is Data Represented?
10 Real Data: Floating Point Representation
1. s (1 bit sign) 2. e (8 bit exponent) 3. f (23 bit fraction)
127 ( 1 ) 1. 2 s e f
11
1
13 More on IEEE Floating Point
Denormalized values (exp = 0; f = non-zero) Zero (exp = 0; f = 0) Infinity (exp = 255; f = 0) NaN (exp = 255; f = non-zero)
14 How is Data Represented?