Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Math Laravel Package

moontoast/math

PHP math utilities for Laravel and general use, offering convenient helpers for precise calculations, percentages, rounding, and numeric formatting. Lightweight and easy to integrate into apps where consistent arithmetic and number handling matter.

View on GitHub
Deep Wiki
Context7
1.2.1

Released: 2020-01-04

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

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

Released: 2017-02-16

1.1.1

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

Released: 2013-01-19

  • 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

Released: 2013-01-16

  • Changed copyright name.
1.0.0

Released: 2013-01-10

  • Initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
babenkoivan/elastic-client
innmind/static-analysis
innmind/coding-standard
datacore/hub-sdk
alengo/sulu-http-cache-bundle
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
imbo/imbo-coding-standard
visualbuilder/filament-lottie
servicioslineaonce/starter-kit
atomcoder/laravel-reorderable
irajul/filament-shadcn-theme
agtp/agtp-php
agtp/mod-php
centraldesktop/protobuf-php