PhysicalMeasure is a C# library for handling physical quantities by specifing value and unit. Scaling of units and conversions between multiple unit systems are supported.
This library is the C# implementation of the concepts of system of physical units. eg. as found on Wikipedia:
Requries .NET framework 4.0.
It can be used to represent and handle physical measures and calculations of physical properties.
For example like this
PhysCalc console application
public void CalculateEnergyIn1Gram()
PhysicalQuantity m = new PhysicalQuantity(0.001, SI.kg);
PhysicalQuantity c = new PhysicalQuantity(299792458, SI.m / SI.s);
PhysicalQuantity E = m * c.Pow(2);
PhysicalQuantity expected = new PhysicalQuantity(0.001 * 299792458 * 299792458, SI.J);
PhysCalc is a calculator using PhysicalMeasure to evaluate physical expressions.
Additional information from Wikipedia on physical quantities and units:
- Physical quantity
- Units of measurement
Additional information from Wikipedia on SI units that I have covered in this library:
- SI base units
- SI derived units
- SI unit prefixes
Other .Net libraries and utilities related to unit conversion
List of .Net libraries and utilities related to unit conversion