mirror of
https://github.com/danog/math.git
synced 2024-11-27 04:14:40 +01:00
src | ||
tests | ||
.gitignore | ||
composer.json | ||
LICENSE | ||
phpunit.xml | ||
README.md |
Brick\Math
Provides the BigInteger
and BigDecimal
classes to work with arbitrary precision numbers.
This component uses the GMP and BCMath extensions for fast computation when they are available, but can also fall back to a native PHP implementation, guaranteeing that it will work on any PHP installation. All of this is totally transparent to the developer, as the component auto-detects the fastest implementation available at runtime.
BigInteger
and BigDecimal
are serializable.