Releases: brick/math
Releases · brick/math
0.10.1
0.10.0
0.9.3
0.9.2
0.9.1
✨ New features
BigInteger::not()returns the bitwiseNOTvalue
🐛 Bug fixes
BigInteger::toBytes()could return an incorrect binary representation for some numbers- The bitwise operations
and(),or(),xor()onBigIntegercould return an incorrect result when the GMP extension is not available
0.9.0
👌 Improvements
BigNumber::of()now accepts.123and123.formats, both of which return aBigDecimal
💥 Breaking changes
- Deprecated method
BigInteger::powerMod()has been removed - usemodPow()instead - Deprecated method
BigInteger::parse()has been removed - usefromBase()instead
0.8.17
0.8.16
🚑 Critical fix
- This version reintroduces the deprecated
BigInteger::parse()method, that has been removed by mistake in version0.8.9and should have lasted for the whole0.8release cycle.
✨ New features
BigInteger::modInverse()calculates a modular multiplicative inverseBigInteger::fromBytes()creates aBigIntegerfrom a byte stringBigInteger::toBytes()converts aBigIntegerto a byte stringBigInteger::randomBits()creates a pseudo-randomBigIntegerof a given bit lengthBigInteger::randomRange()creates a pseudo-randomBigIntegerbetween two bounds
💩 Deprecations
BigInteger::powerMod()is now deprecated in favour ofmodPow()