This is a library allowing to define various units and to convert values between them. Because it is based on modelling the dimension of each unit, it is straightforward (once a unit is defined in relation with other ones) to convert between quantities.
This library was heavily inspired by this Units and Amounts article on codeproject. However, it goes beyond what is provided here by supporting units that don't convert between them simply by applying a multiplication factor.
This is possible because, instead of storing a factor, the conversion (and inverse conversion) functions are stored and combined when building units.
- Targets .NET Standard 2.0
- License is now MIT
- Replaced appveyor CI with Github Actions
- Replaced coveralls.io coverage platform with sonarcloud
- Initial Version. Targets .NET 4.0 and .NET Standard 1.0
- License is Ms-RL
This work is provided under the terms of the MIT License.