Registry / utility / moontoast-math

moontoast-math

JSON →
library1.2.1phppackagistunverified

A mathematics library providing functionality for large numbers.

composer require moontoast/math
INSTALL
IMPORT
SIG · MOONTOAST-MATH
M
moontoast-math
utilityphpv1.2.1
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.

BigNumber
use Moontoast\Math\BigNumber;

Create a BigNumber and perform addition.

use Moontoast\Math\BigNumber; $big = new BigNumber('12345678901234567890'); echo $big->add('98765432109876543210');
Debug
Known issues
breakingRequires PHP 7.1+ and bcmath extension.
fix
Install the bcmath extension.
affects: >=1.0.0
Upgrade
Version history
1.2.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
moontoast-math — pip install moontoast-math · libregistry