The purpose of this small library is to perform automatic compile-time or
run-time dimensional checking when dealing with quantities and units.
There is no actual distinction between units and quantities, so there are no
distinct quantity and unit types. All operations are actually done on
quantities. For example, meter is both the unit _meter_ and the quantity _1m_.
New quantities can be derived from other ones using operators or dedicated
functions.
Quantities can be parsed from strings at run time and compile time.
The main SI units and prefixes are predefined. Units with other dimensions can
be defined by the user.
The purpose of this small library is to perform automatic compile-time or run-time dimensional checking when dealing with quantities and units.
There is no actual distinction between units and quantities, so there are no distinct quantity and unit types. All operations are actually done on quantities. For example, meter is both the unit _meter_ and the quantity _1m_. New quantities can be derived from other ones using operators or dedicated functions.
Quantities can be parsed from strings at run time and compile time.
The main SI units and prefixes are predefined. Units with other dimensions can be defined by the user.