Quantity¶
Represents a physical quantity with a unit.
Singular unit names are canonicalized to their plural form.
When quantities are multiplied, the compound unit's factors are ordered alphabetically.
Functions like Abs and Floor apply to the magnitude and keep the unit.
Max and Min compare quantities after converting to a common unit, returning
the winner in its original unit.
Sign predicates test the magnitude.
Mod of two compatible quantities returns the result in the divisor's unit.