Correctly-rounded, arbitrary precision decimal floating-point arithmetic in PHP 7
Correctly-rounded, arbitrary-precision decimal arithmetic for PHP 7
See http://php-decimal.io
sudo apt-get install libmpdec-dev
pecl install decimal
Alpha:
pecl install decimal-alpha
Windows users can find .dll files under releases.
You can do this temporarily using
php -dextension=decimal.soor by adding
extension=decimal.soto your INI. If you manage PHP with phpbrew, you can use
phpbrew ext enable decimal.
php run-tests.php -P -q