Skip to content

feat: add quantity comparisons and numerical helpers - #30

Merged
ScottishTapWater merged 2 commits into
mainfrom
feat/quantity-comparisons
Oct 24, 2026
Merged

ScottishTapWater merged 2 commits into
mainfrom
feat/quantity-comparisons

Conversation

@ScottishTapWater

Copy link
Copy Markdown
Contributor

Summary

  • Add <, >, <=, and >= for quantities with matching dimensions.
  • Add static Abs, Min, Max, and Clamp helpers, available through quantity aliases such as Current.Clamp(value, min, max).
  • Preserve ordinary double comparison and Math helper semantics, including NaN. Keep the runtime compatible with netstandard2.0.

Verification

  • Independent C# production and test reviews completed with no blocking findings.
  • Solution build: zero warnings and errors.
  • Full suite: 929 passed, including package integration tests.
  • Focused formatting verification and git diff --check passed.

@ScottishTapWater
ScottishTapWater enabled auto-merge (squash) October 24, 2026 18:23
@ScottishTapWater
ScottishTapWater merged commit ccef8b0 into main Oct 24, 2026
2 checks passed
@ScottishTapWater
ScottishTapWater deleted the feat/quantity-comparisons branch October 24, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant