JJ.Framework.Mathematics.Legacy 0.253.6073

Prefix Reserved
dotnet add package JJ.Framework.Mathematics.Legacy --version 0.253.6073
                    
NuGet\Install-Package JJ.Framework.Mathematics.Legacy -Version 0.253.6073
                    
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="JJ.Framework.Mathematics.Legacy" Version="0.253.6073" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JJ.Framework.Mathematics.Legacy" Version="0.253.6073" />
                    
Directory.Packages.props
<PackageReference Include="JJ.Framework.Mathematics.Legacy" />
                    
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 JJ.Framework.Mathematics.Legacy --version 0.253.6073
                    
#r "nuget: JJ.Framework.Mathematics.Legacy, 0.253.6073"
                    
#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 JJ.Framework.Mathematics.Legacy@0.253.6073
                    
#: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=JJ.Framework.Mathematics.Legacy&version=0.253.6073
                    
Install as a Cake Addin
#tool nuget:?package=JJ.Framework.Mathematics.Legacy&version=0.253.6073
                    
Install as a Cake Tool

JJ.Framework.Mathematics.Legacy

Miscellaneous math helpers from a 2015 code freeze.

It's a legacy release for projects that still depend on it.

This legacy release supports newer and older .NET versions, has IntelliSense docs and will support code trimming and native compilation.

A newer extended version is JJ.Framework.Mathematics but it officially only supports .NET 4.6.1 though there's a good chance it still works for later versions too, as compatibility was a high priority during its development.

This legacy release contains the following features:

Maths Helper

Class extending the Math helpers from .NET with:

  • Pow
    • Integer variation of the Math.Pow function.
  • Log with integers
    • It will only return integers, but will prevent rounding errors such as 1000 log 10 = 2.99999999996.

Randomizer

  • GetRandomItem
    • Gets a random item out of a collection.
  • GetInt32
    • Return a random number out of a range:

NumberingSystems

  • ToBase
    • Converts an int to an n-base number in usually string format.
  • FromBase
    • Converts an n-based number to an int. The input is usually in string format.
  • You could convert from one base to another by first calling FromBase and then ToBase.
  • Several overloads to handle it differently.
  • FromHex / ToHex
  • ToLetterSequence / FromLetterSequence
    • Does spread-sheet-style letter sequences. This is not the same as a base-26 numbering system. After the range A-Z is depleted, the next value is 'AA', which is equivalent to 00, so you basically start counting at 0 again, but you get 26 for free.

Release Notes

2026-04-08 | 0.253/4.5 : Legacy
  • Legacy release with the following features:
  • Integer-based Pow and Log, GetRandomItem and Randomizer.GetInt32, number base converter.
  • 100% test coverage, compatibility with Code Trimming and AOT / native compilation, and a whole spread of .NET versions, and IntelliSense doc everywhere.
  • Fix: Pow and Log edge-cases
  • Fix: Removed dependency on JJ.Framework.Reflection.Legacy

💬 Feedback

Got feedback or questions? You can reach me here.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
0.253.6073 0 4/8/2026