61

GitHub - php-decimal/ext-decimal: Correctly-rounded, arbitrary precision decimal...

 5 years ago
source link: https://github.com/php-decimal/ext-decimal
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.
neoserver,ios ssh client

README.md

PHP Decimal

Build Status Build status PECL

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

Documentation

See http://php-decimal.io

Dependencies

sudo apt-get install libmpdec-dev

Install

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