Registry / utility / brick-math

brick-math

JSON →
library0.18.0phppackagistunverified

Arbitrary-precision arithmetic library for PHP, supporting integers and decimals.

composer require brick/math
INSTALL
IMPORT
SIG · BRICK-MATH
B
brick-math
utilityphpv0.18.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BigInteger
use Brick\Math\BigInteger;

Create a BigInteger and perform arithmetic operations.

use Brick\Math\BigInteger; $big = BigInteger::of('12345678901234567890'); echo $big->multipliedBy(2);
Debug
Known issues
breakingRequires PHP 8.1 or later for some features.
fix
Upgrade PHP to version 8.1 or higher.
affects: >=0.18.0
Upgrade
Version history
0.18.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Meta
1
Resources
brick-math — pip install brick-math · libregistry