Module 2 Datarepresentation PartA Bhanu Chander
Module 2 Datarepresentation PartA Bhanu Chander
Part 1
1
2
3
Numeric Data Representation
Numbers System
4
5
Data
Representation
6
7
Number
representation
Only for positive numbers For both positive and negative numbers
Unsigned Signed
representation representaion
9
Signed Numbers
Example: -2.5
10
11
Single Precision
32bits
8 bits 23 bits
Exponent Fraction
Sign
(1 bit)
64 bits
Double 11 bits 52bits
Precision Exponent Fraction
12
13
Floating-Point Representation
Show the IEEE 754 binary representation of the number 0.75 in single
and double precision.
The number 0.75 is also
3/4 or 3/22
It is also represented by the binary fraction
-11/22 or -0.11
Floating-Point Representation
and in normalized scientific notation, it is
-1.1 X 2 -1
The general representation for a single precision number is
(-1)s X (1+Fraction) X 2 (Exponent – 127)
-0.75 can be represented as -(0.11)
15
16
17
The general representation for a double precision number is
(-1)s X (1+Fraction) X 2 (Exponent – 1023)
Computer Arithmetic
18
19