Creating and Converting
Creating a quantity
Arithmetic
add() and subtract() combine two quantities of the same type. Multiplication,
Derived Units
Multiplication, division, and exponentiation combine quantities into derived quantity
Comparison
Comparison methods operate on native values, so two quantities expressed in different
Parsing Strings
PhysicalQuantity::parse() turns a string such as "5.5 meters" into a quantity
Serialization
Quantities implement JsonSerializable, so they can be passed directly to
Temperature
Temperature differs from other quantities because its scales are offset-based: Celsius