You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also find it surprising that a multiplication or division with a unitless result returns a scalar (int or float) rather than another scimath.units.unit.unit instance, but that's another issue.
The text was updated successfully, but these errors were encountered:
So dimensionless.value is 1, which is part of the cause. Changing that feels a bit risky; I'd suggest that instead we change the division semantics so that values are divided using operator.truediv.
There are some surprising results when doing divisions with dimensionless quantities.
I'd expect
float
and0.5
, here.I also find it surprising that a multiplication or division with a unitless result returns a scalar (int or float) rather than another
scimath.units.unit.unit
instance, but that's another issue.The text was updated successfully, but these errors were encountered: