Release 2.2.0
API changes
Support for NaN
, POSITIVE_INFINITY
, NEGATIVE_INFINITY
in BigFloat
The BigFloat
class supports now the same special values as double
:
NaN
for values that cannot be represented a numberPOSITIVE_INFINITY
to represent positive infinite valuesNEGATIVE_INFINITY
to represent negative infinite values
Bugfixes
No Bugfix changes.
Enhancements
Performance optimizations
Performance analysis of the basic operations on BigDecimal
has shown
that the add()
and subtract()
operation are faster without
specifying a MathContext
argument. The multiply()
operation has a
more complex performance behaviour. A single multiplication tends to be
faster without MathContext
argument but the following operations are
at risk to be slower since it accumulates precision.
Many operations where manually fine tuned to find the optimum performance.
The following chart shows performance improvements for the involved operations:
Examples
Note: The example code is available on github, but not part of the big-math library.
No changes in the examples.