SunamoNumbers 26.5.18.4

dotnet add package SunamoNumbers --version 26.5.18.4
                    
NuGet\Install-Package SunamoNumbers -Version 26.5.18.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SunamoNumbers" Version="26.5.18.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SunamoNumbers" Version="26.5.18.4" />
                    
Directory.Packages.props
<PackageReference Include="SunamoNumbers" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SunamoNumbers --version 26.5.18.4
                    
#r "nuget: SunamoNumbers, 26.5.18.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SunamoNumbers@26.5.18.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SunamoNumbers&version=26.5.18.4
                    
Install as a Cake Addin
#tool nuget:?package=SunamoNumbers&version=26.5.18.4
                    
Install as a Cake Tool

SunamoNumbers

A platform-independent .NET library for numeric operations including statistical calculations, number normalization, interval parsing, and mathematical utilities.

Features

  • Statistical Calculations: Median, average, min/max computations with NH (Number Helper)
  • Interval Parsing: Parse numeric intervals and single values from strings with NumberService
  • Number Normalization: Convert signed numeric types to unsigned equivalents with NormalizeNumbers
  • Math Utilities: Highest Common Factor (HCF) and Lowest Common Factor (LCF) with MH
  • Range Generation: Generate sequential number lists and intervals with LinearHelper
  • Value Tracking: Track minimum/maximum values with LowHighHelper

Installation

dotnet add package SunamoNumbers

Target Frameworks

  • .NET 10.0
  • .NET 9.0
  • .NET 8.0

Usage

Statistical Calculations

var list = new List<int> { 4, 4, 250, 500, 500 };
var median = NH.Median(list); // Returns 250

var doubles = new List<double> { 1.0, 2.0, 3.0, 4.0, 5.0 };
var stats = NH.CalculateMedianAverage(doubles, shouldThrowOnSingleElement: false);

Interval Parsing

var service = new NumberService();
var interval = service.ParseInterval("120000-150000");
var singleValue = service.ParseInterval("150000");

Number Normalization

uint normalized = NormalizeNumbers.NormalizeInt(-100);

Math Utilities

int hcf = MH.HCF(12, 8);  // Returns 4
int lcf = MH.LCF(12, 8);  // Returns 2

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.5.18.4 83 5/18/2026
26.3.28.3 129 3/28/2026
26.2.7.2 118 2/7/2026
26.2.5.1 114 2/5/2026
26.2.4.1 107 2/4/2026
26.1.1.66 120 1/1/2026
26.1.1.14 118 1/1/2026
26.1.1.1 113 1/1/2026
25.12.31.2 121 12/31/2025
25.12.31.1 124 12/31/2025
25.12.22.1 203 12/21/2025
25.6.7.1 202 6/7/2025
25.3.29.1 182 3/29/2025
24.12.14.3 168 12/14/2024
24.12.14.2 185 12/14/2024
24.11.11.1 196 11/11/2024
24.11.9.1 167 11/9/2024
24.11.8.3 182 11/8/2024
24.11.8.2 164 11/8/2024
24.11.8.1 159 11/8/2024
Loading failed

y