Home » Math » Math_Fraction
Classes that represent and manipulate fractions.
This package is unmaintained.
Download latest release 0.4.1 (archived versions might be outdated)
License: PHP
Description
Classes that represent and manipulate fractions (x = a/b).
The Math_FractionOp static class contains definitions for:
- basic arithmetic operations
- comparing fractions
- greatest common divisor (gcd) and least common multiple (lcm) of two integers
- simplifying (reducing) and getting the reciprocal of a fraction
- converting a float to fraction.
Maintainers
- Kouber Saparev (kouber) — lead, active
Dependencies
Required
- PHP (>= 4.0.0)
- PEAR Installer (>= 1.4.0b1)
Releases
- 0.4.1 (beta, 2007-07-18)
Release notes
License: PHP
- Full support of negative fractions (Bug #11615).
- 0.4.0 (beta, 2005-08-30)
Release notes
License: PHP
- Fractions now can be created with just a string (Bug #3053).
- Improved error handling performance. - 0.3.0 (alpha, 2004-12-28)
Release notes
License: PHP
Initial release under PEAR.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #3053 | Closed | Req | 2004-12-29 | Math_Fraction::makeFraction() and toString() methods ? | |
| #11615 | Closed | Bug | 0.4.0 | 2007-07-16 | small bug in Math_FractionOp::stringToFraction |
| #18510 | Closed | Bug | 0.4.1 | 2011-05-06 | Reference issue -- PHP 5.3.4 |