ext-decimal

by php-decimal

php-decimal / ext-decimal

Correctly-rounded, arbitrary precision decimal floating-point arithmetic in PHP 7

225 Stars 9 Forks Last release: over 1 year ago (v1.2.0) MIT License 176 Commits 9 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

PHP Decimal Extension

PECL Build Status

PECL Build Status Build status

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

Documentation

See http://php-decimal.io

Requirements

sudo apt-get install libmpdec-dev

Install

pecl install decimal

Alpha:

pecl install decimal-alpha

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.