All Versions
48
Latest Version
Avg Release Cycle
50 days
Latest Release
275 days ago

Changelog History
Page 3

  • v0.8.0 Changes

    October 13, 2018

    ๐Ÿ’ฅ Breaking changes

    ๐Ÿšš The following deprecated methods have been removed. Use the new method name instead:

    ๐Ÿšš | Method removed | Replacement method | | --- | --- | | BigDecimal::getIntegral() | BigDecimal::getIntegralPart() | | BigDecimal::getFraction() | BigDecimal::getFractionalPart() |


    ๐Ÿ†• New features

    BigInteger has been augmented with 5 new methods for bitwise operations:

    New method Description
    and() performs a bitwise AND operation on two numbers
    or() performs a bitwise OR operation on two numbers
    xor() performs a bitwise XOR operation on two numbers
    shiftedLeft() returns the number shifted left by a number of bits
    shiftedRight() returns the number shifted right by a number of bits

    Thanks to @DASPRiD ๐Ÿ‘

  • v0.7.3 Changes

    August 20, 2018

    ๐Ÿ†• New method: BigDecimal::hasNonZeroFractionalPart()

    ๐Ÿ—„ Renamed/deprecated methods:

    • ๐Ÿ—„ BigDecimal::getIntegral() has been renamed to getIntegralPart() and is now deprecated
    • ๐Ÿ—„ BigDecimal::getFraction() has been renamed to getFractionalPart() and is now deprecated
  • v0.7.2 Changes

    July 21, 2018

    ๐ŸŽ Performance update

    ๐Ÿ“œ BigInteger::parse() and toBase() now use GMP's built-in base conversion features when available.

  • v0.7.1 Changes

    March 01, 2018

    ๐Ÿš€ This is a maintenance release, no code has been changed.

    • โœ… When installed with --no-dev, the autoloader does not autoload tests anymore
    • ๐Ÿ“ฆ Tests and other files unnecessary for production are excluded from the dist package

    This will help make installations more compact.

  • v0.7.0 Changes

    October 02, 2017

    Methods renamed:

    • BigNumber:sign() has been renamed to getSign()
    • BigDecimal::unscaledValue() has been renamed to getUnscaledValue()
    • BigDecimal::scale() has been renamed to getScale()
    • BigDecimal::integral() has been renamed to getIntegral()
    • BigDecimal::fraction() has been renamed to getFraction()
    • BigRational::numerator() has been renamed to getNumerator()
    • BigRational::denominator() has been renamed to getDenominator()

    Classes renamed:

    • ArithmeticException has been renamed to MathException
  • v0.6.2 Changes

    October 02, 2017

    The base class for all exceptions is now MathException. ๐Ÿšš ArithmeticException has been deprecated, and will be removed in 0.7.0.

  • v0.6.1 Changes

    October 02, 2017

    A number of methods have been renamed:

    • ๐Ÿ—„ BigNumber:sign() is deprecated; use getSign() instead
    • ๐Ÿ—„ BigDecimal::unscaledValue() is deprecated; use getUnscaledValue() instead
    • ๐Ÿ—„ BigDecimal::scale() is deprecated; use getScale() instead
    • ๐Ÿ—„ BigDecimal::integral() is deprecated; use getIntegral() instead
    • ๐Ÿ—„ BigDecimal::fraction() is deprecated; use getFraction() instead
    • ๐Ÿ—„ BigRational::numerator() is deprecated; use getNumerator() instead
    • ๐Ÿ—„ BigRational::denominator() is deprecated; use getDenominator() instead

    ๐Ÿšš The old methods will be removed in version 0.7.0.

  • v0.6.0 Changes

    August 25, 2017
    • ๐Ÿ‘ Minimum PHP version is now 7.1; for PHP 5.6 and PHP 7.0 support, use version 0.5
    • ๐Ÿšš Deprecated method BigDecimal::withScale() has been removed; use toScale() instead
    • Method BigNumber::toInteger() has been renamed to toInt()
  • v0.5.4 Changes

    October 17, 2016

    BigNumber classes now implement JsonSerializable. The JSON output is always a string.

  • v0.5.3 Changes

    March 31, 2016

    ๐Ÿ›  This is a bugfix release. 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.