decimal

pecl install decimal

Arbitrary precision floating-point decimal

Adds support for correctly-rounded arbitrary precision decimal floating-point arithmetic in PHP 7

Maintainer

  • Rudi Theunissen (lead )

Details

Stars: 324
Issue openned: 26
Downloads: 499446
2.0.0
4 years ago
Request a build
Request to the website owner's team the built this extension with this parameters. The result is not guaranteed and can be impossible for many reasons. The extension source code is frequently not upto date with the most recent PHP version.
If you have another code source for this extension, provide it in comment.
Please (or register) to request a build.
Version 2.0.0 change log


- 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:

  • php >=7.2.0
  • pearinstaller >=1.4.0b1