Latest News

Overview

Mx enables software developers to easily convert units and perform unit arithmetic in their own programs. It is a Java library that represents a measurement as a value and a unit of measurement. The units of measure are customizable to represent any kind of measurable quantity, such as length, mass, time, currency, etc. These measurements can be added, subtracted, multiplied, divided, etc. (operations) while keeping track of the appropriate units. Operations are restricted so that only logical actions are permitted. (For example, 5 meters plus 3 kilograms is an invalid operation.)

The library contains an interface defining how any measurement can be represented. Two implementations of this interface are provided for many physical units of measure (1, 2).

Download

The latest version of Mx can be downloaded here.

Mx is made available under the Academic Free License.

Other Libraries

Another library for object-oriented units of measure can be found at JScience.org