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
As odd of a unit of measure as it is, my office actually has need of Kiloyards as a unit of measure quite regularly. I imagine this is just as simple as adding it into the existing units of measure defined for squants.space.Length, correct?
Or for strange units of measure like this one would we prefer to keep them defined as a ratio instead of directly inside Length?
More generally - is there a defined way to add additional UnitsOfMeasure over an existing abstract type (i.e. Length) without having to directly manipulate the library itself? It would be nice to have the ability to extend Squants with custom UnitsOfMeasure and it looks like perhaps there's been some work in that direction but I'm not sure what the guidance is there in general.
As odd of a unit of measure as it is, my office actually has need of Kiloyards as a unit of measure quite regularly. I imagine this is just as simple as adding it into the existing units of measure defined for
squants.space.Length
, correct?Or for strange units of measure like this one would we prefer to keep them defined as a ratio instead of directly inside
Length
?More generally - is there a defined way to add additional UnitsOfMeasure over an existing abstract type (i.e.
Length
) without having to directly manipulate the library itself? It would be nice to have the ability to extend Squants with custom UnitsOfMeasure and it looks like perhaps there's been some work in that direction but I'm not sure what the guidance is there in general.Reference:
https://www.convertunits.com/info/kiloyard
https://www.convertunits.com/info/kilofoot
See PR #297
The text was updated successfully, but these errors were encountered: