Download Latest Version 0.18.0 source code.zip (59.2 kB)
Email in envelope

Get an email when there's a new version of Brick\Math

Home / 0.18.0
Name Modified Size InfoDownloads / Week
Parent folder
0.18.0 source code.tar.gz 2026-06-14 46.5 kB
0.18.0 source code.zip 2026-06-14 59.2 kB
README.md 2026-06-14 1.2 kB
Totals: 3 Items   107.0 kB 0

💥 Breaking changes

The following breaking change only affects you if you're using named arguments:

  • BigInteger::fromBytes() now uses $bytes as the parameter name

🐛 Bug fixes

  • of() no longer accepts a trailing newline (\n) in the input string; such input now throws NumberFormatException
  • of() now consistently throws NumberFormatException for exponents too large to process, instead of IntegerOverflowException in some cases
  • BigInteger::fromBase() now reports the invalid character with its original case in the NumberFormatException message, instead of lower-casing it

⚡️ Performance improvements

  • BigInteger::gcd() no longer exhausts memory on large inputs when the GMP extension is not installed
  • BigInteger::modInverse() no longer exhausts memory on large inputs, and is faster when the GMP extension is not installed

👌 Static analysis improvements

  • Narrowed parameter and return types with static analysis annotations:
  • nthRoot()'s $n is now positive-int
  • BigInteger::toBase(), toArbitraryBase(), toBytes() and BigRational::toRepeatingDecimalString() now return non-empty-string
Source: README.md, updated 2026-06-14