🚚 Rounding modes have been removed from
BigInteger, and are now a concept specific to
BigInteger::dividedBy()now always returns the quotient of the division.
🛠 Backport of two bug fixes from the 0.5 branch:
BigInteger::parse()did not always throw
- 👀 Dividing by a negative power of 1 with the same scale as the dividend could trigger an incorrect optimization which resulted in a wrong result. See #6.
🆕 New methods:
BigInteger::remainder()returns the remainder of a division only
BigInteger::gcd()returns the greatest common divisor of two numbers
toString()not handling negative numbers.
BigDecimalnow have a
getSign()method that returns:
-1if the number is negative
0if the number is zero
1if the number is positive
🐎 Minor performance improvements
$scaleparameters have been swapped in
Stronger immutability guarantee for
🚀 So far, it would have been possible to break immutability of these classes by calling the
unserialize()internal function. This release fixes that.
max()do not accept an
arrayany more, but a variable number of parameters
- minimum PHP version is now 5.6
- continuous integration with PHP 7