angularsen/UnitsNet
Makes life working with units of measurement just a little bit better. observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 95
- Release rhythm 93
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 11
- age_days: 4793
- days_rel: 47
- days_push: 31
- n_releases_24m: 18
Adoption not part of the score
2969 stars · 416 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Units.NET is a .NET library providing strongly typed quantities and units of measurement with unit conversion, parsing, and localization support. It eliminates magic constants by letting code work with typed quantities like Length and Mass across hundreds of units.
Use cases
- convert between units of measurement in C#
- parse unit strings like '5 m/s' into typed quantities
- avoid magic constants for units in .NET code
- build a unit converter app
- serialize quantities to JSON or XML
- localize unit abbreviations by culture
When to choose
- you write .NET/C# code dealing with physical quantities or measurements
- you need strongly typed units with operator overloads and culture-aware parsing
- you want a mature, widely used MIT-licensed library on NuGet
When to avoid
- your project is not on .NET (though sibling ports exist for other platforms)
- you only need one-off conversions a simple formula can handle
- you need a modular build with only a few units and can't use the experimental UnitsNet.Modular
Facets
library · maturity stable
serialization parser sdk developer-tools cross-platform dotnet cross-platform windows units-of-measure unit-conversion quantities csharp nuget measurement localization algorithms linux macos
3 sources
- readme: https://github.com/angularsen/UnitsNet · fetched 2026-08-28 · 0f77fa44c70a
- homepage: https://www.nuget.org/packages/UnitsNet/ · fetched 2026-08-29 · 402ac1d4d295
- site_page: https://www.nuget.org/policies/About · fetched 2026-08-29 · a113b8a074c9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| angularsen/UnitsNet | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="angularsen/UnitsNet")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem