(I don't know if this is the right place to post this, if not sorry and can it be moved to the right site please)
Under what circumstances would fixed point representation be used rather than floating point?
|
(I don't know if this is the right place to post this, if not sorry and can it be moved to the right site please) Under what circumstances would fixed point representation be used rather than floating point? | |||||||
feedback
|
Questions on Super User are expected to generally relate to computer software or computer hardware, within the scope defined in the faq.
|
It really depends on CPU architecture, but it would generally be used for either:
Many embedded devices do not have an FPU and would make use of fixed point representation. On some architectures, using fixed point would also provide noticeable performance improvements. | |||
|
feedback
|
|
If your target architecture has no (or a slow) floating point unit (for example, many DSPs) then fixed-point will be potentially much faster to compute. Some algorithms behave very badly when floating point is used. For example, if you end up trying to add very small numbers to very large numbers, the small numbers can look like zeros and the update doesn't make any difference. This can have major knock-on effects. This is well worth a read: What Every Computer Scientist Should Know About Floating-Point Arithmetic | |||
|
feedback
|