lecture13

# lecture13 - LECTURE 13 Number representation E7 Lecture 13...

This preview shows pages 1–3. Sign up to view the full content.

1 LECTURE 13 Number representation 1 E7, Lecture 13, Fall 2008 • Integer NUMBERS •Rea l (double) 2 INTEGER NUMBERS • decimal base 10 • binary base 2 • hexadecimal base 16 3

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

View Full Document
2 D ECIMAL ECIMAL VS VS B INARY R EPRESENTATION • In everyday practice, all numbers are typically represented using the decimal system (base-10). e.g. (7345.47) 10 • However, computers favor the binary system 4 (base-2). e.g. (10010.1110) 2 • The binary system is natural for computers where information is coded according to whether an electrical circuit is on (1) or off (0) . COMPUTER REPRESENTATION OF NUMBERS • Computers store numbers using a finite sequence of binary digits ( bits ). – Integers are stored using 16, 32 or 64 (double precision) bits – Reals are stored using 32, 64 (double precision), 80 or 128 bits. 5 • Definition: 1 byte = 8 bits (powers of 2 are magic.) • Disk or memory capacity is denominated in KBytes (10 3 bytes), MBytes (10 6 bytes), GBytes (10 9 bytes) and TBytes(10 12 bytes).
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 4

lecture13 - LECTURE 13 Number representation E7 Lecture 13...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online