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 callingsqrt()
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
- ๐ Further improvement of
-
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 numbersor()
performs a bitwise OR
operation on two numbersxor()
performs a bitwise XOR
operation on two numbersshiftedLeft()
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 togetIntegralPart()
and is now deprecated - ๐
BigDecimal::getFraction()
has been renamed togetFractionalPart()
and is now deprecated
- ๐
-
v0.7.2 Changes
July 21, 2018๐ Performance update
๐
BigInteger::parse()
andtoBase()
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.
- โ
When installed with
-
v0.7.0 Changes
October 02, 2017Methods renamed:
BigNumber:sign()
has been renamed togetSign()
BigDecimal::unscaledValue()
has been renamed togetUnscaledValue()
BigDecimal::scale()
has been renamed togetScale()
BigDecimal::integral()
has been renamed togetIntegral()
BigDecimal::fraction()
has been renamed togetFraction()
BigRational::numerator()
has been renamed togetNumerator()
BigRational::denominator()
has been renamed togetDenominator()
Classes renamed:
ArithmeticException
has been renamed toMathException
-
v0.6.2 Changes
October 02, 2017The base class for all exceptions is now
MathException
. ๐ArithmeticException
has been deprecated, and will be removed in 0.7.0.