PeterO.Numbers 1.5.0

A C# library that supports arbitrary-precision binary and decimal floating-point numbers and rational numbers with arbitrary-precision components, and supports arithmetic with these numbers.

There is a newer version of this package available.
See the version list below for details.
Install-Package PeterO.Numbers -Version 1.5.0
dotnet add package PeterO.Numbers --version 1.5.0
<PackageReference Include="PeterO.Numbers" Version="1.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PeterO.Numbers --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Version 1.5.0

- Major performance improvements in certain number parsing and generating methods, including the FromString methods of EInteger, EDecimal, EFloat, and ERational, and the ToEFloat method of EDecimal, especially where they take an arithmetic context (EContext) that specifies a limited precision and exponent range.
- There were also performance improvements in digit count calculation and in rounding many-digit-long numbers.
- Add int overloads to EDecimal.Pow and EFloat.Pow.
- Add int overloads to several ERational methods.
- Add CompareTo overloads and CompareToValue (which implements current CompareTo) in EDecimal, EFloat, and ERational.  In a future version, CompareTo's behavior might change to CompareToTotal in each of these classes.  Also certain CompareTo* methods now have consistent behavior when they receive a null argument.
- ETrapException now has an Errors property that holds all errors that occur at the same time as the primary error.
- Fixed edge cases when ToShortestString might return an incorrect result.
- Fixed bug when some ETrapExceptions aren't thrown as they should.
- Other bug fixes.

Dependencies

This package has no dependencies.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on PeterO.Numbers:

Package Downloads
PeterO.Cbor
A C# implementation of Concise Binary Object Representation (CBOR), a general-purpose binary data format defined in RFC 7049.
AngouriMath
Enables to work with formulas built in the code or from a string. Computing, derivating, latex rendering, fast functions, solving equations and systems of equations analytycally, simplification, and much more.
Multiformats.Codec
Multiformat codecs
ContentIdentifier
content identifier
CobrowseIO.Windows
Cobrowse.io - Windows SDK

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on PeterO.Numbers:

Repository Stars
MichaelGrafnetter/DSInternals
Directory Services Internals (DSInternals) PowerShell Module and Framework
peteroupc/CBOR
A C# implementation of Concise Binary Object Representation (RFC 7049).

Version History

Version Downloads Last updated
1.7.4 124 8/8/2020
1.7.3 1,749 7/14/2020
1.7.2 131 7/12/2020
1.7.1 185 7/5/2020
1.7.0 108 7/4/2020
1.6.0 7,985 3/20/2020
1.5.1 35,107 12/11/2019
1.5.0 387 12/2/2019
1.4.3 100,488 7/4/2019
1.4.2 217 7/1/2019
1.4.1 206 6/18/2019
1.4.0 176 6/16/2019
1.3.1 231 6/2/2019
1.3.0 204 5/30/2019
1.2.2 7,530 1/3/2019
1.2.1 310 1/2/2019
1.2.0 252 1/1/2019
1.1.2 93,176 7/31/2018
1.1.1 320 7/30/2018
1.1.0 365 7/30/2018
1.0.2 192,574 9/8/2017
1.0.1 324 9/8/2017
1.0.0 1,506 8/11/2017
0.5.0 364 8/6/2017
0.4.0 1,279 5/30/2017
0.3.0 15,463 11/15/2016
0.2.2 14,083 2/15/2016
0.2.0 597 2/3/2016
Show less