** Next:** IEEE Floating Point Standard
**Up:** Floating Point
** Previous:** Floating Point

##
To convert a decimal number to binary floating point representation:

- Convert the absolute value of the decimal number to a
binary integer plus a binary fraction.
- Normalize the number in binary scientific notation to obtain
m and e.
- Set s=0 for a positive number and s=1 for a negative number.

To convert 22.625 to binary floating point:

- Convert decimal 22 to binary 10110. Convert decimal 0.625 to
binary 0.101. Combine integer and fraction to obtain binary 10110.101.
- Normalize binary 10110.101 to obtain
Thus, m = and e = 4 = .
- The number is positive, so s=0.

*CS 301 Class Account *

Mon Sep 13 11:15:41 ADT 1999