wpe41.gif (23084 bytes)CIS3355: Business Data Structures
Fall, 2008
 

How do we deal with issues of magnitude?

As a review, remember that we defined magnitude as:

Magnitude. How large do we want our numbers to be?

Sometimes, we need to work with very large numbers. For example:

1.  The average human body contains roughly 7×1027 atoms
2.  There are about 1047 molecules of water on Earth
3.  The largest known prime number (has an order of magnitude of)
107,816,229

Notice these are very large numbers. Notice also that when we get to numbers this large, we tend to express them in scientific notation. Notice also that when we discuss number this large, we usually refer to them in terms of 'about' or approximately. Or goal usually is NOT precision (as is our concern with the mantissa), just approximation.

That is why, when we talked about the components we wanted to store, we represented the number we wanted to store as:

THE CHARACTERISTIC OF THE EXPONENT, is the value that we need to store, because it tells us how many places we need to move our decimal point (from it's normalized position, and in what direction we need to move it.) For example, we know that we could rewrite -567.678 as:

The characteristic of the exponent indicates what direction (+ to the right; - to the left) and how many (above, +3 means three digits to the right or -.56478 E+3 equates to -564.78). Let's take a look at a few more examples:


Normalized Value
Characteristic of the Exponent
'True' Value
  -.90324 E +5  +5  -90324.0
  +.6976 E -2  -2  +0.006976
    .6578 E +1  +1  +6.578
  - .861 E -5  -5  -0.0000861

OK. So how do we allocate bits between the three components:
The sign, The mantissa, and the characteristic of the exponent ???

That is our next tutorial.

This page was last updated on 05/31/05