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
If you need to get the scalar value associated with a quantity, use ustrip(u::Units, x::Quantity), which converts x to the units u and then returns the scalar portion.
As @rafaqz mentioned above, ustrip(::Quantity) or other methods of generating a scalar are unsafe: 100u"m", 100u"km", and 100u"s" are all stripped to 100 even though they have totally different meanings.
MWE:
Looking into the code, it seems there is a special case to handle this. Did it bitrot at some point?
The text was updated successfully, but these errors were encountered: