UnitsNet - Makes life working with units of measurement just a little bit better.

  •        378

Everyone have written their share of trivial conversions - or less obvious ones where you need to Google that magic constant. Stop littering your code with unnecessary calculations, Units.NET gives you all the common units of measurement and the conversions between them. It is lightweight and thoroughly tested.




Related Projects

js-quantities - JavaScript library for quantity calculation and unit conversion

  •    Javascript

JS-quantities is originally a JavaScript port of Kevin Olbrich's library Ruby Units (http://github.com/olbrich/ruby-units). The library aims to simplify the handling of units for scientific calculations involving quantities.


  •    Java

JUnitConv is an universal Units of Measure Converter built as a Java Applet. It supports an unlimited number of Units Categories, Units of Measure and Multiplier Prefixes that could be customized using external text files.

Units of Measure


Simple solution to cope with units of measure in C# applications. You can develop your own unit system, be it SI-based or anything else that suits your needs.

squants - The Scala API for Quantities, Units of Measure and Dimensional Analysis

  •    Scala

Squants is a framework of data types and a domain specific language (DSL) for representing Quantities, their Units of Measure, and their Dimensional relationships. The API supports typesafe dimensional analysis, improved domain models and more. All types are immutable and thread-safe. Repository hosting for Squants is provided by Sonatype. To use Squants in your SBT project add the following dependency to your build.

Physical Quantities


This library represents all physical quantities, units of measures, unit systems and unit conversions, as stated in different sources, but mainly on Wikipedia.

systemd-manager - A systemd service manager written in Rust with the GTK-rs wrapper and direct integration with dbus

  •    Rust

This application is a systemd service manager written in the Rust programming language with GTK3 as the graphical user interface of choice. The units are filtered into three separate lists: services, sockets, and timers. As a unit is selected in the left pane, the right pane is updated with information pertaining to that unit, and the right headerbar is updated to reflect the status of the unit where you may disable/enable and start/stop the selected unit. Services are units that are activated immediately, sockets are units that are activated when they are needed, and timers are units that activate on a regular time interval. In addition to display units, the application also provides stats generated by systemd-analyze on the Systemd Analyze view.This is available in the AUR as a git package: systemd-manager-git.

MKUnits - Unit conversion library for Swift.

  •    Swift

MKUnits is extremely precise unit conversion library for Swift. It provides units of measurement of physical quantities and simplifies manipulation of them. MKUnits is available under the MIT license. See the LICENSE file for more info.

Unit Conversion Library

  •    DotNet

Unit Conversion Library is a .Net 2.0 based library, containing static methods for all the Units Set present in Windows 7 calculator. "Angle", "Area", "Energy", "Length", "Power", "Pressure", "Temperature",Time", "Velocity", "Volume", "Weight/Mass".

The Units of Measure Library

  •    C++

Provides a C++ type-safe mechanism to deal with various units of measure. It prevents many units-related run-time errors (such as mistakenly mixing feet and meters) by catching them at compile time. The library includes scalar, 2D, and 3D vectors.

Units Conversion Library

  •    Perl

Provides functions to convert quantity strings into appropriately scaled floating point numbers. Useful to Tcl/SWIG/C/C++ application developers who wish to permit users to enter quantities with units, such as quot;20 miles/hourquot; or quot;200pFquot;.

postcss-pxtorem - Convert pixel units to rem (root em) units using PostCSS

  •    Javascript

A plugin for PostCSS that generates rem units from pixel units. Pixels are the easiest unit to use (opinion). The only issue with them is that they don't let browsers change the default font size of 16. This script converts every px value to a rem from the properties you choose to allow the browser to set the font size.

Java library and framework: quantity

  •    Java

This Java library (currently 217 classes) is able to handle quantities in terms of basic arithmetics, conversion to similar units, serialization. As framework it allows to create new dimensions and units by inheritance.

ruby-units - A unit handling library for ruby

  •    Ruby

Kevin C. Olbrich, Ph.D. This version removes 'mathn' as a dependency. Mathn alters the behavior of some mathematical operators, which frequently causes unexpected behavior and can be a source of difficult to diagnose bugs. Mathn is also scheduled to be removed from the Ruby standard library.

ispc - Intel SPMD Program Compiler

  •    C++

ispc is a compiler for a variant of the C programming language, with extensions for single program, multiple data programming. Under the SPMD model, the programmer writes a program that generally appears to be a regular serial program, though the execution model is actually that a number of program instances execute in parallel on the hardware. ispc compiles a C-based SPMD programming language to run on the SIMD units of CPUs; it frequently provides a 3x or more speedup on CPUs with 4-wide vector SSE units and 5x-6x on CPUs with 8-wide AVX vector units, without any of the difficulty of writing intrinsics code. Parallelization across multiple cores is also supported by ispc, making it possible to write programs that achieve performance improvement that scales by both number of cores and vector unit size.

winspd - Windows Storage Proxy Driver - User mode disk storage

  •    C

WinSpd enables the creation of storage units ("SCSI disks") in user mode (i.e. without writing any kernel mode code). Such storage units are created and served by user mode storage devices (i.e. user mode processes) and are added to the Windows OS storage stack. They appear to Windows as real disks that can be formatted and accessed via a file system such as NTFS. A user mode storage device is a user mode process that can create and serve storage units. As storage unit is a SCSI "direct-access block device" (as per the definition in the SCSI SBC standard) or more commonly referred to as a "SCSI disk". It is used to store data in logical blocks; each block contains the same amount of data (the Block Length) and has a Logical Block Address (LBA), which is a 64-bit number in a single contiguous address space. In particular WinSpd (and the SCSI standard) do not assume the traditional geometry of cylinder-head-sector (CHS) for how blocks are laid out.

viewport-units-buggyfill - Making viewport units (vh|vw|vmin|vmax) work properly in Mobile Safari.

  •    Javascript

This is a buggyfill (fixing bad behavior), not a polyfill (adding missing behavior). That said, it provides hacks for you to get viewport units working in old IE and Android Stock Browser as well. If the browser doesn't know how to deal with the viewport units - vw, vh, vmin and vmax - this library will not improve the situation unless you're using the hacks detailed below. The buggyfill uses the CSSOM to access the defined styles rather than ship its own CSS parser, that'S why the hacks abuse the CSS property content to get the values across. The buggyfill iterates through all defined styles the document knows and extracts those that uses a viewport unit. After resolving the relative units against the viewport's dimensions, CSS is put back together and injected into the document in a <style> element. Listening to the orientationchange event allows the buggyfill to update the calculated dimensions accordingly.

insect - High precision scientific calculator with support for physical units

  •    PureScript

A high precision scientific calculator with full support for physical units. Operators: addition (+), subtraction (-), multiplication (*, ·, ×), division (/, ÷, per), exponentiation (^, **). Full list: see Reference below.

Unit Conversion

  •    Java

A program for converting between physical units, such as feet and meters. There is a Java library, for use in Java applications, and a PalmOS application. It is able to mix units and convert between systems, such as the Metric and the English systems

JEDI Darth Header Conversion Tool


JDarth, based on Dr Bob's HeadConv v4.20, is quot;capable of generating implicit and explicit Delphi import units (16/32-bit compatible) for C DLL header files.quot; It automatically translates C header files into Pascal interface units.

We have large collection of open source products. Follow the tags from Tag Cloud >>

Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.