File: README.md

package info (click to toggle)
php-decimal 1.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 456 kB
  • sloc: ansic: 1,928; xml: 102; makefile: 2
file content (38 lines) | stat: -rw-r--r-- 815 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# PHP Decimal Extension

[![PECL](https://img.shields.io/badge/PECL-1.5.0-blue.svg)](https://pecl.php.net/package/decimal)

Correctly-rounded, arbitrary-precision decimal arithmetic for PHP

## Documentation

See https://php-decimal.github.io/

## Dependencies

- PHP 7 or 8
- [mpdecimal](http://www.bytereef.org/mpdecimal/download.html)

## Install

```
pecl install decimal
```

Windows users can find *.dll* files under [releases](https://github.com/php-decimal/ext-decimal/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](https://github.com/phpbrew/phpbrew), you can use `phpbrew ext enable decimal`.

## Local development

Docker: `./develop.sh`

## Tests

```
php run-tests.php -P -q
```