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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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).
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

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

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online