haeckel/basic-decimal-arithmetic

Simple interface for doing basic arithmetic with decimal numbers with arbitrary precision

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/haeckel/basic-decimal-arithmetic

dev-main 2026-01-07 22:20 UTC

This package is auto-updated.

Last update: 2026-01-07 22:20:31 UTC


README

codecov ci Static Badge Static Badge Packagist License

Haeckel/php-basic-decimal-arithmetic

Simple php library for working with decimal numbers in arbitrary precision.

Features

  • Calculator interface the four basic arithmetic operations and modulo
  • a type decimal num to encapsulate strings in decimal notation (main motivation was the bcmath required format)
  • a cmpResult enum to have readable values for comparison results. Used by calculator, but may as well be used for e.g. strcmp

Installation

Install the package vai composer by running:

composer require haeckel/exception

Contribute

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Source Code

Support

Let us know if you have issues.

Issue Tracker

License

LGPL-3.0-or-later