/Delta.Units

Units Definition and Conversion Library

Primary LanguageC#MIT LicenseMIT

Delta.Units

Build Quality Gate Status Coverage NuGet

About

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.

History

Version 0.5.0 - 2020/10/18

  • Targets .NET Standard 2.0
  • License is now MIT
  • Replaced appveyor CI with Github Actions
  • Replaced coveralls.io coverage platform with sonarcloud

Version 0.4.0 - 2018/05/18

  • Initial Version. Targets .NET 4.0 and .NET Standard 1.0
  • License is Ms-RL

License

This work is provided under the terms of the MIT License.