LongCalc 0.5.30

There is a newer version of this package available.
See the version list below for details.
dotnet add package LongCalc --version 0.5.30                
NuGet\Install-Package LongCalc -Version 0.5.30                
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="LongCalc" Version="0.5.30" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LongCalc --version 0.5.30                
#r "nuget: LongCalc, 0.5.30"                
#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.
// Install LongCalc as a Cake Addin
#addin nuget:?package=LongCalc&version=0.5.30

// Install LongCalc as a Cake Tool
#tool nuget:?package=LongCalc&version=0.5.30                

LongCalc Arbitrary Precision Float and Complex Number Library

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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.5.36 150 9/30/2024
0.5.35 131 8/28/2024
0.5.34 1,121 2/10/2023
0.5.33 1,158 12/28/2021
0.5.32 1,237 10/2/2021
0.5.31 1,087 8/1/2021
0.5.30 1,108 3/25/2021
0.5.29 1,274 10/15/2020
0.5.28 1,203 9/24/2020
0.5.27 1,250 9/18/2020
0.5.26 1,358 9/17/2020 0.5.26 is deprecated because it has critical bugs.
0.5.25 1,259 9/6/2020
0.5.24 1,197 8/25/2020
0.5.23 1,255 8/5/2020
0.5.22 1,637 7/31/2020
0.5.21 1,648 7/30/2020
0.5.20 1,258 7/29/2020
0.5.19 1,250 7/28/2020
0.5.18 1,287 5/22/2020
0.5.17 1,254 5/19/2020
0.5.16 1,300 5/17/2020
0.5.15 1,287 5/17/2020
0.5.14 1,287 5/11/2020
0.5.13 1,381 5/3/2020
0.5.12 1,382 4/4/2020
0.5.11 1,255 3/31/2020
0.5.10 1,304 2/13/2020
0.5.9 1,355 2/8/2020
0.5.8 1,316 2/5/2020
0.5.7 1,428 1/21/2020
0.5.6 1,315 11/27/2019
0.5.5 1,299 11/16/2019
0.5.4 1,279 11/7/2019
0.5.3 1,309 11/2/2019
0.5.2 1,319 10/21/2019
0.5.1 1,529 7/29/2019
0.4.12 1,524 6/15/2019
0.4.11 1,519 6/10/2019
0.4.10 1,547 5/13/2019
0.4.9 1,631 4/15/2019
0.4.8 1,502 4/7/2019
0.4.7 1,523 3/23/2019
0.4.6 1,505 3/4/2019
0.4.5 1,549 3/4/2019
0.4.4 1,618 2/10/2019
0.4.3 1,829 1/30/2019
0.4.2 1,782 1/29/2019
0.4.1 1,802 1/29/2019
0.3.25 1,535 3/25/2019
0.3.24 1,524 3/4/2019
0.3.23 1,791 1/25/2019
0.3.22 1,842 1/23/2019
0.3.21 1,879 1/12/2019
0.3.20 1,835 1/4/2019
0.3.19 1,817 1/3/2019
0.3.18 1,825 12/30/2018
0.1.25 1,552 3/25/2019
0.1.24 1,547 3/4/2019
0.1.23 1,882 1/12/2019
0.1.22 1,803 12/24/2018
0.1.21 2,104 4/20/2018
0.1.16 1,963 9/2/2017
0.1.15 1,927 8/23/2017
0.1.11 1,833 8/4/2017
0.1.10 1,951 8/1/2017
0.1.8 1,839 7/27/2017
0.1.7 1,892 6/14/2017
0.1.6 1,925 6/14/2017
0.1.5 1,953 6/10/2017
0.1.2 2,207 11/22/2016
0.1.1 1,912 11/12/2016

Unsigned Assembly

Something prompted me to determine exactly what happens in the more current versions when 'growing' an mpz_t or bf object above the limit of 2 ^ 37 bits. I had always assumed it would cause a program crash much as what happened when 'growing' numbers in versions before 0.5.0. I found that what happens is, if possible, worse. The sign bit on an mpz_t item appears to occur at bit# (2 ^ 37) - 64, and gets overwritten in an unprotected shift left, add, or multiply operation. Basically, the earlier 0.5.xx versions returned inaccurate results when performing operations that resulted in output longer than (2 ^ 37) - 64 bits.

This version attempts to fix that problem. The Add, Subtract, Multiply, Divide, and shiftLeft functions have been modified to restrict bf and bd objects to have an mpz_t integer component shorter than (2 ^ 37) - 64, partly by restricting the decimal Precision parameters to be always less than or equal 20686000000 (which is a decimal equivalent to nearly 1/2 of (2 ^ 37) - 64 bits). This should result in accurate outcomes of objects, even when squaring an item or multiplying any two valid bf or bd items together.

This version also includes an updated and enhanced LongCalcDemoApp executable.

Checks for arithmetic overflow or underflow are again compiler-included in this release.