-
Notifications
You must be signed in to change notification settings - Fork 397
Description
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 was thinking about this previously and I think decimal might be a better backing datatype because it can exactly represent powers of 10 because it's a decimal floating point type (double is binary floating point). It would make sense to use it since we're mainly concerned with SI units which are powers of 10, however it's a major breaking change and decimal is less efficient for calculations...
I don't think this is applicable anymore given the test checking within a tolerance. Let me make a PR and we can discuss,.