Repository navigation
Arbitrary-precision decimal numbers on bcmath, now immutable and modernized for PHP 8.4.
BigNumberis immutable: the mutable flag,setValue(),setScale()andisMutable()are removed. UsewithScale()and the newround().- 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.