JJ.Framework.Mathematics.Legacy
0.259.7239
Prefix Reserved
dotnet add package JJ.Framework.Mathematics.Legacy --version 0.259.7239
NuGet\Install-Package JJ.Framework.Mathematics.Legacy -Version 0.259.7239
<PackageReference Include="JJ.Framework.Mathematics.Legacy" Version="0.259.7239" />
<PackageVersion Include="JJ.Framework.Mathematics.Legacy" Version="0.259.7239" />
<PackageReference Include="JJ.Framework.Mathematics.Legacy" />
paket add JJ.Framework.Mathematics.Legacy --version 0.259.7239
#r "nuget: JJ.Framework.Mathematics.Legacy, 0.259.7239"
#:package JJ.Framework.Mathematics.Legacy@0.259.7239
#addin nuget:?package=JJ.Framework.Mathematics.Legacy&version=0.259.7239
#tool nuget:?package=JJ.Framework.Mathematics.Legacy&version=0.259.7239
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 supports 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; 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.Powfunction.
- Integer variation of the
Logwith integers- It will only return integers, but will prevent rounding errors such as
1000 log 10=2.99999999996.
- It will only return integers, but will prevent rounding errors such as
Randomizer / RandomizerLegacy
GetRandomItemTryGetRandomItem- Gets a random item out of a collection.
GetInt32/GetSingle/GetDouble- Return a random number out of a range.
NumberingSystems
ToBaseConverts anintto an n-base number in usually string format.FromBaseConverts an n-based number to anint. The input is usually in string format.- You could convert from one base to another by first calling
FromBaseand thenToBase. - Several overloads to handle it differently.
FromHex/ToHexToLetterSequence/FromLetterSequenceDoes 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
PowandLog,GetRandomItemandRandomizer.GetInt32, number base converter. - 100% coverage with meaningful tests, compatibility with Code Trimming and AOT / native compilation, and a whole spread of .NET versions, and IntelliSense doc everywhere.
- Fix:
PowandLogedge-cases - Fix: Removed dependency on
JJ.Framework.Reflection.Legacy
2026-06-29 | 0.256/4.8 : RandomizerLegacy Move
- Moved
RandomizerLegacyclass from.Corevariant of project to.Legacyproject. - Fully tested and now release as part of the .Legacy lib.
- Expanded for coherence. And ported back to 2021 legacy branch.
- (RandomizerLegacy is a 2021 version. Legacy projects contain code from 2015; Core projects code from 2025. Code from 2021 is somewhere in the middle. It made more sense to move those from .Core to .Legacy since the workflow around Legacy code is so much different than Core, that it makes more architectural sense to group them.)
💬 Feedback
Got feedback or questions? You can reach me here.
| Product | Versions 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. |
-
.NETStandard 2.0
- JJ.Framework.Build (>= 5.1.7239)
-
.NETStandard 2.1
- JJ.Framework.Build (>= 5.1.7239)
-
net10.0
- JJ.Framework.Build (>= 5.1.7239)
-
net6.0
- JJ.Framework.Build (>= 5.1.7239)
-
net7.0
- JJ.Framework.Build (>= 5.1.7239)
-
net8.0
- JJ.Framework.Build (>= 5.1.7239)
-
net9.0
- JJ.Framework.Build (>= 5.1.7239)
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.259.7239 | 51 | 7/9/2026 |
| 0.257.7151 | 105 | 7/2/2026 |
| 0.256.7095 | 103 | 6/30/2026 |
| 0.255.7026 | 113 | 6/23/2026 |
| 0.255.7023 | 110 | 6/23/2026 |
| 0.254.6251 | 128 | 4/25/2026 |
| 0.253.6073 | 118 | 4/8/2026 |