FP Addition and Subtraction Algorithm


The following figure shows the algorithm for binary floating-point addition and subtraction. It includes the following five steps:
Step 1. Making exponents of two operands equal
Step 2. Adding or subtracting the significands
Step 3. Normalizing the result
Step 4. Rounding the significand
Step 5. Checking for overflow or underflow