1 / 11

Number Systems

Number Systems. Part 2. Counting in Binary. When the symbols for the first digit are exhausted, the next-higher digit (to the left) is incremented, and counting starts over at 0. Byte. The byte is a unit of digital information in computing and telecommunications.

lukas
Download Presentation

Number Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Number Systems Part 2

  2. Counting in Binary When the symbols for the first digit are exhausted, the next-higher digit (to the left) is incremented, and counting starts over at 0.

  3. Byte • The byte is a unit of digital information in computing and telecommunications. • It is an ordered collection of bits, in which each bit denotes the binary value of 1 or 0. • A byte is composed of 8 bits.

  4. Byte Prefixes • When you start talking about lots of bytes, you get into prefixes like kilo, mega and giga, as in kilobyte, megabyte and gigabyte (also shortened to K, M and G, as in Kbytes, Mbytes and Gbytes or KB, MB and GB). The following table shows the binary multipliers:

  5. Summary of Conversions

  6. Number of Bits and No. of possible values Largest Number represented in 8 bits: =128 + 64 + 32+16+8+4+2+1 =255

  7. Number of Bits, No. of possible values and Range Number of possible values = 2N Range: 0 to 2N -1 (28 =256) = 0 to 255

  8. Signed Integer Representation • Sign and Magnitude • One’s Complement • Two’s Complement

  9. Sign and Magnitude • Requires one bit to represent sign • 0 for positive • 1 for negative • In 8 bit allocation you can only use 7 bits to represent absolute value of a number • Range: - (2N -1) to + (2N -1) = -127 to +127

  10. Example • Store -258 in a 16 bit memory location using sign-and-magnitude representation • Solution: • First change the number to binary • 100000010 • Add 6 zeros to make a total of N-1 bits • 000000100000010 • Add an extra one on the left to show that the number is negative • 1000000100000010

  11. Representation of Zero in Sign and Magnitude Representation • Issue: Two representations of zero • +0  00000000 • -0  10000000

More Related