UnitsNet icon indicating copy to clipboard operation
UnitsNet copied to clipboard

Makes life working with units of measurement just a little bit better.

Results 95 UnitsNet issues
Sort by recently updated
recently updated
newest added

Not the same abbreviation for Liters is used in the whole library. Sometimes it's an uppercase letter "L", sometimes a lowercase letter "l" is used. Some examples: Volume Liter =>...

bug

Initial pass. Still a WIP. Any help appreciated! Needs some additional changes (NaN handling, etc.).

pinned

Fixes #1017 - Reverted removing `IEquatable`. - Changed the implementation to strict equality on both `Value` and `Unit`. - Improved tests. - Improved xmldocs for equality members. - `GetHashCode()` left...

Fixes #180 Work in progress, please use this PR to discuss the changes and report any problems. ## Breaking changes 💥 ~~Rename BaseUnit to ConversionBaseUnit~~ #795 Default number format should...

**Describe the bug** `.GetHashCode()` returns different hash for 2 units for which `.Equals()` return true **To Reproduce** ```csharp Length inCm = Length.FromCentimeters(100); Length inM = Length.FromMeters(1); Assert.AreEqual(inCm, inM); Assert.AreNotEqual(inCm.GetHashCode(), inM.GetHashCode());...

bug
wontfix

Fixes #1058 Proposal for fixing #1058. As per discussion: - `IQuantity.Value` returns `QuantityValue`. This implies the addition of some explicit interface implementations to the quantities, so that the default `Value`...

**Is your feature request related to a problem? Please describe.** We would like to be able to indicate things such as perfect conductivity or perfectly insulated objects. This requires ```double.PositiveInfinity```...

enhancement

Some quantities, for instance `information` have `decimal` as base type (which does make sense). However, except for the `Value` property, all properties return double: ```csharp /// /// Gets a value...

enhancement