decimal 2.0.0

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


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

License: MIT License

Changes

- 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`.