5 ms·
That may be true for the author, but it's pretty common to use fixed point integers for DSP. It's less expensive in hardware, and very convenient. You don't nee
by anyfoo 4y ago
That may be true for the author, but it's pretty common to use fixed point integers for DSP. It's less expensive in hardware, and very convenient. You don't need an FPU or a floating point DSP, it's easy to implement in FPGAs (which often have integer adders and multipliers as extra blocks also), and fixed point integer algorithms are pretty easy to characterize in terms of SNR and other tradeoffs (MATLAB has an entire "Fixed Point" toolbox for that, and it's great).
Often in DSP, there is just no good reason to use floating point instead of fixed point integers.
- Yaa101 4y agoAlso fixed point math is more accurate than floating point math in computers, also it is easy to accomplish. Even 32bit numbers can be very big/small when a struct of 2 32bit integers is used, one for the number and one for the exponent.
- LegionMammal978 4y agoIf you have a variable exponent, then don't you have a floating-point representation by definition?
- LocalH 4y agoFixed point. In this case, 32.32
- anyfoo 4y agoIt's true that that's not an exponent, though, and that was what they were replying to. Exponents make floating point. I think the poster before that meant to say "fractional part" instead.
- greesil 4y agoEither you've got a 64 bit fixed point number, 64Q32 or you just invented your own floating point format, and it's not clear which you're trying to describe.
- Yaa101 4y agoFixed point math is common in software made for business applications because of rounding problems with binary floating point math. The following link is an example of a good quality fixed point math library and shows you how it is done. https://pkg.go.dev/github.com/shopspring/decimal?utm_source=godoc https://pkg.go.dev/github.com/shopspring/decimal?utm_source=...
- greesil 4y agoYou are explaining to me something in which I am already an expert. Thank you! Buenbot!