35

GitHub - php-decimal/extension: Decimal extension for PHP 7+

 5 years ago
source link: https://github.com/php-decimal/extension
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

PHP Decimal

Build Status Build status

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

Documentation

See http://php-decimal.io

Dependencies

  • PHP 7
  • libmpdec 2.4
sudo apt-get install libmpdec-dev

Install

PECL

pecl install decimal

Manual

git clone [email protected]:php-decimal/extension ext-decimal
cd ext-decimal

phpize
./configure
make
sudo make install

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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK