Skip to content

odalet/Delta.Units

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • 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

License

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

About

Units Definition and Conversion Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages