Login  |  Packages  |  Support  |  Bugs

Return

Changelog for decimal
Release What has changed?
2.0.0 - Default decimal precision changed from 28 to 34.
- Decimal operations now use the **minimum** precision of all operands.
- Added `Decimal\Rational` implementation for rational numbers (fractions).
- Added `Decimal\Number` abstract class.
- Performance improvements, reduced object allocations.
- Private constructors, static initializers via `valueOf`.
1.3.1 - Fixed abs affected by precision.
1.3.0 - Fixed sqrt of -INF returning -INF rather than NAN. #13
- Disable opcache pass 2 due to numeric string to float casts. Thanks @krakjoe
1.2.0 - 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
1.1.2 Fix incompatibility with pthreads. #12 @krakjoe
1.1.1 Fix "signum" returning 1 for zero, instead of 0.
1.1.0 Added "trim" method, to remove trailing zeroes.
1.0.1 Package content updates, smarter .m4 @remicollet
1.0.0 Initial release, request for comments.

Return

PRIVACY POLICY  |  CREDITS
Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Jan 25 00:05:01 2019 UTC
Bandwidth and hardware provided by: pair Networks