61
GitHub - php-decimal/ext-decimal: Correctly-rounded, arbitrary precision decimal...
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.
README.md
PHP Decimal
Correctly-rounded, arbitrary precision decimal floating-point arithmetic in PHP 7.
Documentation
Dependencies
- PHP 7
- libmpdec 2.4
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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK