-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magnitude constants representation type #631
Comments
Make it possible for the |
Yeah, I thought about this as well. But then, how do we define units like: mp-units/src/systems/include/mp-units/systems/si/units.h Lines 103 to 105 in 2892fd8
Do we want to expose |
Why would those need to change? |
I'm confused: do we have any evidence that the current setup is not embedded friendly? I haven't kept up on the details of every change to magnitudes since they landed. But my mental model is that the type of the constant never manifests in any runtime-used value. I would expect users to only ask for That's one of the nice things about magnitudes. You can get your computations performed in higher-precision |
Good point @chiphogg. I forgot about Is |
Although, |
Thanks, now I understand what you meant. |
I don't actually know. Empirically, I've never seen a bug report about |
As of today,
mag_constant
requires a value oflong double
(e.g., forpi
). However, it might not be a good option for embedded projects. Should we change the requirement to just be a floating-point type? How to refactorpi
to be embedded-friendly?The text was updated successfully, but these errors were encountered: