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

Changelog History
Page 3

  • v0.8.4 Changes

    December 07, 2018

    ๐Ÿ†• New method

    BigDecimal::sqrt() calculates the square root of a decimal number, to a given scale.

  • v0.8.3 Changes

    December 06, 2018

    ๐Ÿ†• New method

    BigInteger::sqrt() calculates the square root of a number (thanks @peter279k).

    ๐Ÿ†• New exception

    NegativeNumberException is thrown when calling sqrt() on a negative number.

  • v0.8.2 Changes

    November 08, 2018

    ๐ŸŽ Performance update

    • ๐ŸŽ Further improvement of toInt() performance
    • NativeCalculator can now perform some multiplications more efficiently
  • v0.8.1 Changes

    November 07, 2018

    ๐ŸŽ Performance optimization of toInt() methods.

  • 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.