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
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime Icon
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.

Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
Try Free
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