Professional Documents
Culture Documents
02 MLRepresentationOfData
02 MLRepresentationOfData
02 MLRepresentationOfData
Representation
of Data
CSC159 – Computer Organization
Lesson Outcomes
Numeric conversion between number bases
Decimal ↔ Binary ↔ Octal ↔ Hexadecimal
Fractional Conversions
Signed Numbers Representation
Sign-magnitude, 1s complement, 2s complement
Arithmetic operations
Addition and Subtraction
Floating point format
IEEE 754 standard – single precision
8 7 6 5 4 3 2 1 0
2 256 128 64 32 16 8 4 2 1
1 6 6 7
Integer 5,735 /4,096 1,639 / 256 103 /16 7
=1 =6 =6
Remainder 5,735 - 4,096 1,639 –1,536 103 – 96
= 1,639 = 103 =7
512 64 8 1
x7 x2 x6 x3
Sum for
Base 10 3,584 128 48 3
Base 16 1 F 6 7
.1010112 = 0.67187510
Example (binary):
1. -10000.1 = -100.001 x 22
= -1.00001 x 24
2. 0.000101 = 1.01 x 2-4
UiTM Terengganu - naza Topic 2: Machine Level Representation of Data 24
Floating Point (Scientific Notation)
number = m x a e
m – mantissa
a – base
e – exponent (positive or negative integer)
UiTM Terengganu
Topic 2: Machine Level Representation of Data
26
- naza
Floating Point (Scientific Notation)
a) 1011110.100012
b) 0.0000000000110112
c) -712.510