moontoast/math
PHP math utilities for Laravel and general use, offering convenient helpers for precise calculations, percentages, rounding, and numeric formatting. Lightweight and easy to integrate into apps where consistent arithmetic and number handling matter.
Released: 2020-01-04
Released: 2020-01-04
BigNumberInterfaceAbstractBigNumber implementing BigNumberInterface, to
extract common code (mainly convenience and static methods).BigNumberImmutable, extending AbstractBigNumber and composing
a mutable BigNumber.BigNumber extend AbstractBigNumber.There is a subtle difference in how BigNumberImmutable works in respect to
BigNumber when using withScale method instead of setScale:
When invoking BigNumberImmutable::withScale(), the new instance will have the
new value re-computed according to the new scale. With BigNumber::setScale()
instead, the change doesn't happen until subsequent computations.
Released: 2017-02-16
convertToBase10() and convertFromBase10() returned incorrect results if the global bcmath.scale value was set to something other than zero. See https://github.com/ramsey/uuid/issues/150.Released: 2016-11-17
docs/ directoryReleased: 2013-01-19
\Moontoast\Math\Exception\ArithmeticException instead of \InvalidArgumentException\Moontoast\Math\Exception\ArithmeticExceptionReleased: 2013-01-16
Released: 2013-01-10
How can I help you explore Laravel packages today?