#1,087 – Representing Binary Floating Point Numbers Using Scientific Notation

We can represent decimal floating point numbers using scientific notation, using the form:

1084-001

(where a and b are both decimal values).

We can also represent binary floating point numbers using scientific notation.  The basic form is:

1087-001

(where a and b are both binary values).

Below is an example.  Assume that we have a binary floating point value of 101.101 (5.625 decimal).

1087-002

If we have the binary value 1.01101, we need to shift the decimal point two places to the right to get our desired value of 101.101.  This is equivalent to multiplying by 4, or 2 raised to the power of 2.  We write the exponent in binary, so the power of 2 is written as “10”.

 

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

Leave a comment