28.06.2014 Views

Number Systems Humans use the decimal number system to ...

Number Systems Humans use the decimal number system to ...

Number Systems Humans use the decimal number system to ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Hexa<strong>decimal</strong> Subtraction<br />

10 - 1 = F<br />

10 - 2 = E<br />

11 - 2 = D<br />

Subtraction that crosses between <strong>number</strong>s and letters can be confusing. For example,<br />

Seeing 10-1, your au<strong>to</strong>matic reaction will be 9, but try <strong>to</strong> focus on <strong>the</strong> <strong>number</strong> <strong>system</strong> you are<br />

using.<br />

Summary on <strong>the</strong> Use of <strong>Number</strong> <strong>Systems</strong><br />

You might wonder how <strong>the</strong>se <strong>number</strong> <strong>system</strong>s are <strong>use</strong>d. The computer can <strong>use</strong> all three,<br />

and people have set up computers <strong>to</strong> <strong>use</strong> <strong>the</strong> most appropriate <strong>system</strong> for various purposes. For<br />

example, generally <strong>the</strong> computer <strong>use</strong>s <strong>decimal</strong> * for input and output, since I/O is where <strong>the</strong><br />

computer interacts with people, and people work best with <strong>decimal</strong>. The computer <strong>use</strong>s binary<br />

for internal representation of everything, since that is most efficient <strong>system</strong> for processing and<br />

s<strong>to</strong>rage. The computer <strong>use</strong>s hexa<strong>decimal</strong> when printing out or displaying long strings of binary<br />

<strong>number</strong>s for people <strong>to</strong> read. For example, if a program crashes, <strong>the</strong> computer might generate a<br />

"core dump," which is a display of <strong>the</strong> contents of memory at <strong>the</strong> time of <strong>the</strong> crash. This dump is<br />

printed in hex <strong>to</strong> make it easier for <strong>the</strong> programmer <strong>to</strong> read.<br />

* Actually, I/O is done in character form, but that is a subject for ano<strong>the</strong>r time and place.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!