Add strongly typed quantities to your code and get merrily on with your life. No more magic constants found on Stack Overflow, no more second-guessing the unit of parameters and variables. Get all the common units of measurement and the conversions between them. It is lightweight and thoroughly tested. 100+ quantities with 1200+ units generated from JSON by C# CLI app. 8000+ unit tests on conversions and localizations. Conforms to Microsoft's open-source library guidance. SourceLink to step into source code of NuGet package while debugging. Strong naming to make the library available to all developers. Immutable structs that implement IEquatable, IComparable. Statically typed quantities and units to avoid mistakes and communicate intent. Operator overloads for arithmetic on quantities. Parse and ToString() supports cultures and localization. Dynamically parse and convert quantities and units. Extensible with custom units. You can create a unit converter app.

Features

  • Operator overloads for arithmetic on quantities
  • Parse and ToString() supports cultures and localization
  • Dynamically parse and convert quantities and units
  • Extensible with custom units
  • Precision and accuracy
  • Continuous integration posts status reports to pull requests and commits

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Units.NET

Units.NET Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Units.NET!

Additional Project Details

Operating Systems

Windows

Programming Language

C#

Related Categories

C# Test and Measurement Software

Registered

2022-06-09