All Versions
Latest Version
Avg Release Cycle
65 days
Latest Release
120 days ago

Changelog History
Page 5

  • v0.4.0 Changes

    June 12, 2015

    ๐Ÿšš Rounding modes have been removed from BigInteger, and are now a concept specific to BigDecimal.

    BigInteger::dividedBy() now always returns the quotient of the division.

  • v0.3.5 Changes

    March 31, 2016

    ๐Ÿ›  Backport of two bug fixes from the 0.5 branch:

    • ๐Ÿ“œ BigInteger::parse() did not always throw InvalidArgumentException as expected
    • ๐Ÿ‘€ 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.
  • v0.3.4 Changes

    June 11, 2015

    ๐Ÿ†• New methods:

    • BigInteger::remainder() returns the remainder of a division only
    • โœ… BigInteger::gcd() returns the greatest common divisor of two numbers
  • v0.3.3 Changes

    June 07, 2015

    ๐Ÿ›  Fix toString() not handling negative numbers.

  • v0.3.2 Changes

    June 07, 2015

    BigInteger and BigDecimal now have a getSign() method that returns:

    • -1 if the number is negative
    • 0 if the number is zero
    • 1 if the number is positive
  • v0.3.1 Changes

    June 05, 2015

    ๐ŸŽ Minor performance improvements

  • v0.3.0 Changes

    June 04, 2015

    The $roundingMode and $scale parameters have been swapped in BigDecimal::dividedBy().

  • v0.2.2 Changes

    June 04, 2015

    Stronger immutability guarantee for BigInteger and BigDecimal.

    ๐Ÿš€ So far, it would have been possible to break immutability of these classes by calling the unserialize() internal function. This release fixes that.

  • v0.2.1 Changes

    June 02, 2015

    โž• Added BigDecimal::divideAndRemainder()

  • v0.2.0 Changes

    May 22, 2015
    • min() and max() do not accept an array any more, but a variable number of parameters
    • minimum PHP version is now 5.6
    • continuous integration with PHP 7