Forum Discussion
Altera_Forum
Honored Contributor
13 years agoFloating point division
Hi, does anyone has a code for floating point division? i tried using the megafunction tool for division but it keeps giving me error when i run simulation.
Altera_Forum
Honored Contributor
13 years agoFP division is probably simpler than integer division - especially if you aren't worried about underflow, overflow, infinities, NaNs and denormalised small values.
Extract and subtract the exponents and then divide the mantissa's - which both start with a 1.