UnitsNet
UnitsNet copied to clipboard
Makes life working with units of measurement just a little bit better.
**Describe the bug** When using **UnitsNetIQuantityJsonConverter** (and hence **Newtonsoft.JSon** serializer), **Swagger** generates the schema of all units (e.g. **Length**) as they are as C# classes, reporting **all their properties** (value,...
**Describe the bug** In different languages, it is the "unit name" that should be localized, not the "unit symbol". **To Reproduce** 1. Create an application modeled after the Unit converter...
I am trying to add a custom unit for our project that should go under ElectricResistivity. It is MeterPerSiemens (m/S) and is a 1 to 1 conversion to OhmMeter. I...
I have XML that looks like this: ``` Line1 235.84905660377359 0.11207695625525477 0.13272960272211731 0 0.15749675983630079 0.30305386615104046 0 ``` I need to deserialize this to custom classes called Line and Point. The...
**Please** be respectful of people's time. The project is maintained in evenings and weekends. This is not an invitation to frequently ping us on your issues and pull requests, but...
Implementing direct conversion functions would help reduce error. Currently, to go from ounces to pounds, we go: ounces -> kilograms -> pounds This shows an example of going directly from...
**Is your feature request related to a problem? Please describe.** _Request related_ As part of the powerful and wide support in multiple languages in the unit definition, I think it...
As discussed in #1367 (and many times before) - this is an attempt to solve the rounding issues with the Equality/IComparable contracts (the former having been marked as obsolete). -...
This PR removes some seemingly unused dependencies, and moves all dependency versions to a single file according to [Central Package Management](https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management).
**Describe the bug** Comparison with a smaller unit (e.g. `MillidegreesCelsius`) fails when the larger unit (e.g. `DegreesCelsius`) is set using `double.minValue` or `double.maxValue`. **To Reproduce** Steps to reproduce the behavior...