Skip to content

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

License

Notifications You must be signed in to change notification settings

php-decimal/ext-decimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f6d5028 · Jan 17, 2024
Feb 5, 2020
Feb 5, 2020
Oct 24, 2018
Feb 4, 2020
Feb 3, 2020
Feb 3, 2020
Oct 24, 2018
Jan 17, 2024
Nov 2, 2018
Feb 19, 2019
Feb 6, 2019
Jun 21, 2023
Feb 4, 2020
Jul 10, 2020
Feb 20, 2019
Aug 27, 2019

Repository files navigation

PHP Decimal Extension

PECL Build Status

PECL Build Status Build status

Correctly-rounded, arbitrary-precision decimal arithmetic for PHP

Documentation

See php-decimal.github.io

Requirements

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