Repository navigation
feat: add Imperial unit conversions - #38
Merged
Merged
Conversation
ScottishTapWater
added a commit
that referenced
this pull request
Oct 25, 2026
## Summary Adds the opt-in `DimensionalQuantities.Extensions.Nautical` package on top of #38. It provides conversions for the international nautical mile, fathom, square nautical mile, and knot. Ambiguous regional cable definitions are left out. The provider generates no SI-prefixed helpers. The README includes a short usage example. Packaged-consumer and symbol-package integration tests cover the new package. ## Verification - Release solution build: 0 warnings, 0 errors. - Nautical tests: 3 passed; packaged integration tests: 10 passed. - `dotnet pack` and package layout check passed for all solution packages and symbols. - `dotnet format --verify-no-changes --no-restore` passed for changed C# files. - Independent production and test reviews found no actionable issues. Definitions follow [NOAA's nautical mile and knot reference](https://oceanservice.noaa.gov/facts/nautical-mile-knot.html) and [NOAA's charting distance conversions](https://www.nauticalcharts.noaa.gov/publications/docs/distances.pdf).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the opt-in
DimensionalQuantities.Extensions.Imperialpackage on top of #37. It provides British and US customary conversions for length, area, volume, mass, speed, force, pressure, energy, power, and absolute Fahrenheit temperature. US and Imperial liquid measures have distinct method names; the BTU helper uses the International Table definition.The provider generates no SI-prefixed helpers. Core gains package-neutral
SpeedandForcequantity names. The package checker now validates every extension included in the solution, and the README shows how to use Imperial conversions.Verification
dotnet packproduced runtime and symbol packages; package layout check passed.dotnet format --verify-no-changes --no-restorepassed for changed C# files.Conversion definitions follow NIST SP 811, its International Table BTU footnote, and the UK Units of Measurement Regulations.