Unified Code for Units of Measure
The Unified Code for Units of Measure (UCUM) is a system of codes for unambiguously representing measurement units. Its primary purpose is machine-to-machine communication rather than communication between humans. The code set includes all units defined in ISO 1000, ISO 2955-1983, ANSI X3.50-1986, HL7 and ENV 12435, and explicitly and verifiably addresses the naming conflicts and ambiguities in those standards to resolve them. It provides for representations of units in 7 bit ASCII for machine-to-machine communication, with unambiguous mapping between case-sensitive and case-insensitive representations. A reference  open-source implementation is available as a Java applet. Also an OSGi based implementation at Eclipse Foundation. Base units. Units are represented in UCUM with reference to a set of seven base units. The UCUM base units are the meter for measurement of length, the second for time, the gram for mass, the coulomb for charge, the kelvin for temperature, the candela for luminous intensity, and the radian for plane angle. The UCUM base units form a set of mutually independent dimensions as required by dimensional analysis. Some of the UCUM base units are different from the SI base units . UCUM is compatible with, but not isomorphic with SI. There are four differences between the two sets of base units: Metric and non-metric units. Each unit represented in UCUM is identified as either "metric" or "non-metric". Metric units can accept metric prefixes as in SI. Non-metric units are not permitted to be used with prefixes. All of the base units are metric. UCUM refers to units that are defined on non-ratio scales as "special units". Common examples include the bel and degree Celsius. While these are not considered metric units by UCUM, UCUM nevertheless allows metric  prefixes to be used with them where this is common practice. Binary prefixes are also supported. Arbitrary units. UCUM recognizes units that are defined by a particular measurement procedure, and which cannot be related to the base units. These units are identified as "arbitrary units". Arbitrary units are not commensurable with any other unit; measurements in arbitrary units cannot be compared with or converted into measurements in any other units. Many of the recognized arbitrary units are used in biochemistry and medicine. Derived units. Any metric unit in any common system of units can be expressed in terms  of the UCUM base units