NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #2162 most downloaded on Packagist
Object-oriented wrapper/shim for BC Math PHP extension. Allows for arbitrary-precision math operations.
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.9 years
Most releases are documented
notes for 5 of 6 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
6 releases · first in 2017
This release fixes bug #19 and also contains multiple commits improving the CI.
This release fixes bug #19 and also contains multiple commits improving the CI.
But the call for new PrestaShop\Decimal\Number is always available for retrocompatibility, but deprecated.
This release rename calls.
Previously, you call new PrestaShop\Decimal\Number.
Now, you call new new PrestaShop\Decimal\DecimalNumber.
But the call for new PrestaShop\Decimal\Number is always available for retrocompatibility, but deprecated.
One column per quarter.
This release adds a couple shorthand methods to perform comparisons with zero:
This release adds a couple shorthand methods to perform comparisons with zero:
$a = new PrestaShop\Decimal\Number('777.777');
$a->equalsZero(); // returns false
$a->isLowerThanZero(); // returns false
$a->isLowerOrEqualThanZero(); // returns false
$a->isGreaterThanZero(); // returns true
$a->isGreaterOrEqualThanZero(); // returns trueThis version adds support for creating Numbers using the scientific notation (as described in the PHP documentation ), as well as floats without leadi
This version adds support for creating Numbers using the scientific notation (as described in the PHP documentation), as well as floats without leading zero (e.g. .001).
This minor version fixes an ambiguity in the way trailing zeroes are handled by Decimal.
This minor version fixes an ambiguity in the way trailing zeroes are handled by Decimal.
BCMath always returns trailing zeroes whereas Decimal 1.0 always strips them, unless the requested precision is greater than the number's (in that case it adds trailing zeroes).
We fixed that ambiguity by exposing two methods instead of one:
toPrecision() - which always returns trailing zeroesround() - which always strips trailing zeroesNothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →