# units

a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.

Canonical page: https://www.reposhelf.co.uk/projects/github/nholthaus/units.html

- Project ID: nholthaus/units
- Source: GitHub
- Original project: https://github.com/nholthaus/units
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: Not recorded
- Licence: MIT
- Repository availability checked: 2026-11-03T18:36:59.248Z
- Demo page loaded: 2026-11-20T18:45:56.669Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> A compile-time, header-only, dimensional-analysis and unit-conversion library for C++23, with no dependencies.

> units represents physical quantities as types. A quantity is a value with a unit — meters, feet, seconds — that behaves like the number it wraps. Conversions between compatible units are implicit and resolved at compile time; expressions that are dimensionally inconsistent do not compile.

> Quantities are written with unit literals \(5.0m\) or by multiplying a value by a unit constant \(60.0 km\):

- Syntax. Quantities are written as meters, 60mi / 1hr, sqrt\(area\); operations are performed
- on the quantity types.
- Batteries included. Over 280 units across 48 dimensions ship ready to use — SI, imperial and
- US-customary, ancient, and esoteric alike \(3.0cwt, 10.0fur, 1.0rem\), each a named type with a literal and an exact, canonically-sourced conversion ratio. There is no unit "system" to select or instantiate: every unit is…
- compiles to no machine code. A quantity is a trivially-copyable value the size of its underlying type.

## Author-documented requirements and audience

> A compile-time, header-only, dimensional-analysis and unit-conversion library for C++23, with no dependencies.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/nholthaus/units/blob/main/README.md

Extraction checked: 2026-10-24T15:52:25.715Z

Last recorded source update: 2026-10-18T21:16:48.000Z

Saved release: v3.6.1 — 2026-08-18T00:36:21.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=nholthaus%2Funits). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
