Data storage & representation

1,212 views

Published on

Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,212
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
9
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Data storage & representation

  1. 1. Data Storage & Representation<br />How data is stored in the Computer<br />
  2. 2. Data<br />As you may recall data is raw facts that cannot take the form of letters, numbers, text , sound and images.<br />There are two types of data<br />Discrete <br />Data<br />DATA<br />Continuous <br />Data<br />
  3. 3.
  4. 4.
  5. 5.
  6. 6. DECIMAL NUMBER SYSTEM<br />Before we explain the concept of the binary system, let us review the number system we are familiar with. <br />Our decimal number system consists of ten digits: 0,1,2,3,4,5,6,7,8,9 and for this reason it is referred to as the base 10 number system or denary.<br />The base of any number may be indicated as a subscript on the extreme right of the number e.g.45510<br />
  7. 7. Types of numbers in the denary system<br />Natural numbers or whole numbers such as -1,2,3,10,108 etc.<br />Integers are numbers that have no fractional parts and are either positive or negative. -19,88,-9etc.<br />Real numbers are numbers with a decimal point or include a fractional part. 10.8, -8.9 etc<br />The magnitude of a number refers to how large a number is. It does not depend on the sign of a number. E.gthe magnitude of -10 and 10 is 10.<br />
  8. 8. Binary Addition<br />To Lean 5 binary sums<br />Octal number system<br />Hexadecimal number system<br />Binary subtraction<br />
  9. 9. Representing Signed Numbers<br />Signed numbers are both positive and negative integers. (an integer is a whole number with no fractional part)<br />Ways of representing signed numbers are<br />Sign and magnitude<br />One’s complement<br />Two’s complement<br />Binary coded decimal<br />
  10. 10. Sign & Magnitude representation<br />The leftmost bit is used to represent the sign (positive or negative) and the remaining bits represent the magnitude.<br />A ‘0’ sign bit indicates that the number is positive.<br />A ‘1’ sign bit indicates that the number is negative.<br /> 00101101<br />Sign bit<br />magnitude<br />
  11. 11. 4 bit binary representation of the decimal system<br />The range of numbers that can be represented using four bits is -7 to +7<br />

×