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
Build Securely on AWS with Proven Frameworks Icon
Build Securely on AWS with Proven Frameworks

Lay a foundation for success with Tested Reference Architectures developed by Fortinet’s experts. Learn more in this white paper.

Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Download Now
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