Skip to content

2.0.0

Latest

Choose a tag to compare

@waltertamboer waltertamboer released this 23 Nov 14:58
· 4 commits to master since this release

Arbitrary-precision decimal numbers on bcmath, now immutable and modernized for PHP 8.4.

  • BigNumber is immutable: the mutable flag, setValue(), setScale() and isMutable() are removed. Use withScale() and the new round().
  • The namespace is now PHPMath\BigNumber. Requires PHP 8.4 or newer and the bcmath extension.
  • Specific exceptions implementing BigNumberException, and several calculation bugs fixed.
  • Full documentation: https://phpmath.github.io/bignumber/

This is a breaking release, see the upgrading page in the documentation.