-
Notifications
You must be signed in to change notification settings - Fork 382
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
Power is using the decimal type #1194
Comments
I'm all for it, double down on double. The only concern is breaking changes that requires another major version bump and that integer quantities like Even so, a consistent type is better in the end and I would rather look into generics to support decimal, float and other number types if anyone cares enough about it to champion it. |
+1, the breaking changes with Power are preventing us from upgrading to v5 without lots of casting. I'd like to applaud @tmilnthorp for his PR efforts. |
Thanks! |
Alas, we're using the conversion properties in quite a few places so we have to wait for v6. I should have paid attention and protest against this change landing in v5 in the first place 😅 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Fixes #1194 --------- Co-authored-by: Andreas Gullberg Larsen <andreas.larsen84@gmail.com>
Fixed in #1195 for v6 |
I'm upgrading to 5.1.0 in my projects and noticed that Power is using the decimal type.
I don't think this is a bug so much as questioning if this is expected? It has been this way since 2014, I only just noticed since the value property in v5 now returns the underlying type rather than always double.
I would expect this type to be consistent with much of the other types: double.
Per the PR:
I don't think this is applicable anymore given the test checking within a tolerance. Let me make a PR and we can discuss,.
The text was updated successfully, but these errors were encountered: