moontoast/math
Abandoned; use brick/math. A mathematics library, providing functionality for large numbers
1.2.1
27M downloads/mo
#2473 most downloaded on Packagist
ramsey/moontoast-math
What this package is like to depend on
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 3.8 years
Nearly every release is documented
notes for 7 of 7 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
7 releases · first in 2013
0 releases in the last 12 months
see the full history below
Release timeline
7 releases · Jan 2013 to Jan 2020Releases
latest 7-
1.2.105 Jan 2020Release notes
Open source →Released: 2020-01-04
- Package is abandoned. Please transition to brick/math.
Release notes
Open source →Released: 2020-01-04
- Package is abandoned. Please transition to brick/math.
-
1.2.005 Jan 2020Release notes
Open source →Released: 2020-01-04
- Optimize algorithm for conversion from base-10 numbers
- Simplify the algorithm for absolute value.
- Introduce
BigNumberInterface - Introduce
AbstractBigNumberimplementingBigNumberInterface, to
extract common code (mainly convenience and static methods). - Introduce
BigNumberImmutable, extendingAbstractBigNumberand composing
a mutableBigNumber. - Make
BigNumberextendAbstractBigNumber. - Remove dependency on ext-bcmath.
There is a subtle difference in how
BigNumberImmutableworks in respect to
BigNumberwhen usingwithScalemethod instead ofsetScale:When invoking
BigNumberImmutable::withScale(), the new instance will have the
new value re-computed according to the new scale. WithBigNumber::setScale()
instead, the change doesn't happen until subsequent computations.Release notes
Open source →Released: 2020-01-04
- Optimize algorithm for conversion from base-10 numbers
- Simplify the algorithm for absolute value.
- Introduce
BigNumberInterface - Introduce
AbstractBigNumberimplementingBigNumberInterface, to extract common code (mainly convenience and static methods). - Introduce
BigNumberImmutable, extendingAbstractBigNumberand composing a mutableBigNumber. - Make
BigNumberextendAbstractBigNumber. - Remove dependency on ext-bcmath.
There is a subtle difference in how
BigNumberImmutableworks in respect toBigNumberwhen usingwithScalemethod instead ofsetScale:When invoking
BigNumberImmutable::withScale(), the new instance will have the new value re-computed according to the new scale. WithBigNumber::setScale()instead, the change doesn't happen until subsequent computations. -
1.1.216 Feb 2017Release notes
Open source →- Fix issue where
convertToBase10()andconvertFromBase10()returned incorrect results if the globalbcmath.scalevalue was set to something other than zero. See ramsey/uuid#150.
Release notes
Open source →Released: 2017-02-16
- Fix issue where
convertToBase10()andconvertFromBase10()returned incorrect results if the globalbcmath.scalevalue was set to something other than zero. See https://github.com/ramsey/uuid/issues/150.
- Fix issue where
-
1.1.117 Nov 2016Release notes
Open source →- Updated from PSR-0 to PSR-4 standard
- Fix failing tests on PHP 7
- Miscellaneous build and test improvements
- Removed the
docs/directory
Release notes
Open source →Released: 2016-11-17
- Updated from PSR-0 to PSR-4 standard
- Fix failing tests on PHP 7
- Miscellaneous build and test improvements
- Removed the
docs/directory
-
1.1.019 Jan 2013Release notes
Open source →- Break: Division by zero now throws
\Moontoast\Math\Exception\ArithmeticExceptioninstead of\InvalidArgumentException - Regenerated API documentation to include
\Moontoast\Math\Exception\ArithmeticException
Release notes
Open source →Released: 2013-01-19
- Break: Division by zero now throws
\Moontoast\Math\Exception\ArithmeticExceptioninstead of\InvalidArgumentException - Regenerated API documentation to include
\Moontoast\Math\Exception\ArithmeticException
- Break: Division by zero now throws
-
1.0.116 Jan 2013 -
1.0.011 Jan 2013