Lecture3 - Lecture 3 Number Representation Integers Several...

Info icon This preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Lecture 3 Number Representation Integers - Several bytes together are used to store integers - 2 bytes (1/2 word) form a short integer - 4 bytes (1 word) form a regular integer - 8 bytes (2 words) form a long integer - Computers work with fixed sized numbers, aka finite precision numbers (fixed when the computer is designed and built). o What does this mean? Computers can only deal with numbers that can be represented by a fixed number of digits. Example: Only positive integer numbers represented by, say, 3 decimal digits 1000 unique numbers (000, 001, 002, …, 999) Impossible numbers: > 999; negative numbers; fractions; irrational numbers; complex numbers
Image of page 1

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

View Full Document Right Arrow Icon