Correctly-rounded, arbitrary precision decimal floating-point arithmetic in PHP 7
Switch branches/tags
Clone or download
rtheunissen Merge pull request #7 from remicollet/issue-6
handle lib64 case, for pecl installation on RPM distro, fix #6
Latest commit d648a96 Dec 3, 2018

README.md

PHP Decimal Extension

Build Status Build status PECL

Correctly-rounded, arbitrary-precision decimal arithmetic for PHP 7

Documentation

See http://php-decimal.io

Dependencies

sudo apt-get install libmpdec-dev

Install

pecl install decimal

Windows users can find .dll files under releases.

Enable

You can do this temporarily using php -dextension=decimal.so or by adding extension=decimal.so to your INI. If you manage PHP with phpbrew, you can use phpbrew ext enable decimal.

Tests

php run-tests.php -P -q