zae/bigmath

Easily work with big numbers with late static binding and chaining.

Maintainers

Details

github.com/Zae/bigmath

Source

Issues

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/zae/bigmath

dev-master 2014-08-24 17:48 UTC

This package is auto-updated.

Last update: 2025-10-10 11:49:22 UTC


README

Easily work with big numbers with late static binding and chaining.

Adapters

Supports multiple adapters, like bcmath and gmp.

Late static binding

No need to create a new object, simply call the first function statically.

BigMath::Add("10");

Chaining

Because the functions always return a new BigMath object, the function calls can be chained together.

BigMath::Add("10")->Sub("5")->Mul("2");

Decimals

The default of the class is to use decimal numbers, if these are not required they can be disabled, this could enable adapters that can't handle decimal numbers, like GMP.

MIT

MIT Licensed