The UDUNITS-2 package provides support for units of physical quantities. Its three main components are:
- a C library for units of physical quantities;
- a utility; for obtaining the definition of a unit and for converting numeric values between compatible units;
- an extensive database of units.
The manual can be found at : http://www.unidata.ucar.edu/software/udunits/#documentation