All notable changes to this project will be documented in this file. This project follows Semantic Versioning.
- Default decimal precision changed from 28 to 34 to match Decimal128.
- Decimal operations now use the minimum precision of all operands, rather than the maximum.
- Remove
Decimal\Decimal::equals
method. - Added
Decimal\Rational
implementation for rational numbers (fractions). - Added
Decimal\Number
abstract number class. - Added
Decimal\Precision
interface. - Added
Decimal\Decimal::reduce
method. - Remove
signum
methods. - Remove
parity
methods. - Better consistency around scientific notation when converting to string or JSON.
- Precision is now applied on operations only (input is preserved).
- Decimal constructors are now private - must use
\Decimal\Number::valueOf
.
- Fixed sqrt of -INF returning -INF rather than NAN. #13
- Disable opcache pass 2 due to numeric string to float casts. Thanks @krakjoe
- Change signum of NAN returning 1, now throws RuntimeException. #10
- Change toInt of NAN and INF returning 0, now throws RuntimeException. #11
- Fix pthreads incompatibility (properly). #12
- Fix pthreads incompatibility. #12
- Fix
signum
returning 1 for zero, instead of 0. #9
- Added
trim
method to Decimal to trim trailing zeroes.
- Added docs and tests to package.xml @remicollet
- Smarter libmpdec lib check in config.m4 @remicollet
- Initial public release, request for comments.