Floating-Point to Integer Conversion (FIX Instruction)
5-42
Figure 5–20. Flowchart for Floating-Point to Integer Conversion by FIX Instruction
Test for special cases of
α
(
exp)
α
(
exp) > 30
α
(
exp) in range
rs = 31 –
α
(
exp)
Overflow
Shift
If
α
(
man) > 0,
c = most positive integer
If
α
(
man) < 0,
c = most negative integer
c =
α
(
man) > > rs
Set
c to final result
α
c = fix(
α
)