Replies: 1 comment 4 replies
-
I also wrote a fpm type some time ago, however, there were many corner cases that would've required a lot more carefully written unit tests. Instead I would very much prefer to integrate an existing, tested library to reduce the maintenance burden. You can of course add the small implementation externally in application code, or in a fork of modm. But in general, I'd really like to delegate as much as possible to not reinvent the wheel so much… |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would you be interested in accepting a code for formatting fixed-point numbers as strings? I saw that you have a plan to integrate the fpm library some day, but for a basic needs, say an IIR filter implementation, it's enough to have a multiplication procedure and a number-to-text conversion procedure - addition and subtraction is same (if saturation is not needed) as for integers. This is the prototype that I currently use in my project https://godbolt.org/z/99dG9K31r.
Beta Was this translation helpful? Give feedback.
All reactions