Need help with ext-decimal?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

php-decimal
241 Stars 11 Forks MIT License 176 Commits 17 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

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.