PHP Extension Repository is a modern mirror of PECL website with Windows pre-build.
pecl
install decimal
Arbitrary precision floating-point decimal
Adds support for correctly-rounded arbitrary precision decimal floating-point arithmetic in PHP 7
Maintainer
Details
Stars: | 324 |
Issue openned: | 26 |
Downloads: | 499446 |
- Default decimal precision changed from 28 to 34.
- Decimal operations now use the **minimum** precision of all operands.
- Added `Decimal\Rational` implementation for rational numbers (fractions).
- Added `Decimal\Number` abstract class.
- Performance improvements, reduced object allocations.
- Private constructors, static initializers via `valueOf`.
requires: