Shodor Computational Science Institute

A Simple Base 2 Example

Dr. Holly Hirst
Appalachian State University
The Shodor Education Foundation
June 1998

Let's look at a simple "computer."

  • base is 2
  • exponent range is -2 to 2
  • number of bits in the mantissa is 3

What are all of the model numbers?

The possible exponents are:

-2-1012

The possible mantissas are:

.100.101.110.111

Now let's list all of the numbers in order:

NumberBase 10 NumberGapRelative Gap
00
.100 x 2-2.125.125
.101 x 2-2.15625.03125.25
.110 x 2-2.1875.03125.2
.111 x 2-2.21875.03125.166667
.100 x 2-1.25.03125.142857
.101 x 2-1.3125.0625.25
.110 x 2-1.375.0625.2
.111 x 2-1.4375.0625.166667
.100 x 20.5.0625.142857
.101 x 20.625.125.25
.110 x 20.75.125.2
.111 x 20.875.125.166667
.100 x 211.125.142857
.101 x 211.25.25.25
.110 x 211.5.25.2
.111 x 211.75.25.166667
.100 x 222.25.142857
.101 x 222.5.5.25
.110 x 223.5.2
.111 x 223.5.5.166667


The Wilkinson Model of Arithmetic


Last update on: June 10, 1998
Please direct questions and comments about this page to
[email protected]
© Copyright 1998 The Shodor Education Foundation, Inc.