Representing Real Numbers

Real numbers are number like:
Whole numbers eg 1, 2 ,3 4 etc
Rational Numbers eg 3/4

Real numbers are also known as floating point numbers.

The real number is stored as 2 seprate bits of data. A storage location called the mantissa holds the complete number without the point.

The exponent holds the number of places that the point must be moved in the orginal number to place it at the left hand side.

For example, what is the exponent of 10110.110

The exponent is 5 because the point has to be moved 5 times to the left hand side. Then you write the number again, this time you rewrite the number without the point, then you write times 2(since it’s binary) and then 0101 since thuis is 5 in binary.

If the number only had 6 bits eg 11.10.11 then you would add two zero’s so that theirs 8 bits.

This entry was posted in Uncategorized. Bookmark the permalink.

1 Response to Representing Real Numbers

  1. Excellent post Ryan, really impressive and the use of the example is great. One minor issue – you say that “real numbers are also known as floating boat numbers”. I think you mean “floating point numbers”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s