Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Releases: ramsey/moontoast-math

1.2.1

05 Jan 04:51
1.2.1
5f47d34
Compare
Choose a tag to compare

Released: 2020-01-04

  • Package is abandoned. Please transition to brick/math.

1.2.0

05 Jan 04:36
1.2.0
a3ad456
Compare
Choose a tag to compare

Released: 2020-01-04

  • Optimize algorithm for conversion from base-10 numbers
  • Simplify the algorithm for absolute value.
  • Introduce BigNumberInterface
  • Introduce AbstractBigNumber implementing BigNumberInterface, to
    extract common code (mainly convenience and static methods).
  • Introduce BigNumberImmutable, extending AbstractBigNumber and composing
    a mutable BigNumber.
  • Make BigNumber extend AbstractBigNumber.
  • Remove dependency on ext-bcmath.

There is a subtle difference in how BigNumberImmutable works in respect to
BigNumber when using withScale method instead of setScale:

When invoking BigNumberImmutable::withScale(), the new instance will have the
new value re-computed according to the new scale. With BigNumber::setScale()
instead, the change doesn't happen until subsequent computations.

1.1.2

16 Feb 16:59
1.1.2
c2792a2
Compare
Choose a tag to compare
  • Fix issue where convertToBase10() and convertFromBase10() returned incorrect results if the global bcmath.scale value was set to something other than zero. See ramsey/uuid#150.

1.1.1

17 Nov 18:17
Compare
Choose a tag to compare
  • 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.0

17 Nov 18:09
Compare
Choose a tag to compare
  • Break: Division by zero now throws \Moontoast\Math\Exception\ArithmeticException instead of \InvalidArgumentException
  • Regenerated API documentation to include \Moontoast\Math\Exception\ArithmeticException

1.0.1

17 Nov 18:09
Compare
Choose a tag to compare
  • Changed copyright name

1.0.0

17 Nov 18:09
Compare
Choose a tag to compare
  • Initial release