Libraries tagged by arbitrary precision
roundly-consulting/money-for-laravel
1157 Downloads
Immutable arbitrary-precision Money and Currency value objects for Laravel: ISO 4217 + custom currencies, exact decimal parsing, rounding-safe arithmetic and allocation, locale formatting, Eloquent casts and schema macros, validation, discounts, tax, and pluggable exchange rates (array, database, ECB).
ocubom/base-convert
14980 Downloads
Safe number conversion between arbitrary bases.
cline/math
12664 Downloads
Arbitrary-precision arithmetic library
adapik/gmp-polyfill
560 Downloads
Pure-PHP polyfill for the GMP extension, backed by brick/math
assisted-mindfulness/naive-bayes
536463 Downloads
A fluent Naive Bayes classifier for PHP and Laravel with normalized arbitrary-precision probabilities.
tiny-blocks/math
22853 Downloads
Arbitrary-precision numbers for PHP, where arithmetic is exact and rounding is explicit.
marcoconsiglio/bcmath-extended
422 Downloads
The BCMathExtended library extends the PHP BCMath extension adding more features like abs, min, max, random, factorial, type comparison between integer and decimal or positive and negative, modulo and power modulo with negative modulus (see more on BCMath extendsion http://php.net/manual/en/book.bc.php).
ikr/money-math
16285 Downloads
gmp-based arbitrary precision operations on currency amounts "XXX.YY"; because floats are BAD for representing money
gammadia/bcmath-extended-nullable
106058 Downloads
Fork of krowinski/bcmath-extended with added nullable input arguments
ez-php/bignum
776 Downloads
Arbitrary-precision integer and decimal arithmetic for the ez-php ecosystem — immutable BigInteger and BigDecimal value objects backed by bcmath (gmp optional)
code-distortion/realnum
14055 Downloads
Arbitrary-precision floating-point maths with locale-aware formatting - integrated with Laravel or stand-alone
code-distortion/currency
1732 Downloads
Arbitrary precision currency maths with locale-aware formatting - integrated with Laravel or stand-alone
tezmanian/utils-num
55 Downloads
PHP number utilities: formatting, byte sizes, percentage, clamping, and rounding helpers (Num), plus arbitrary-precision decimal arithmetic via bcmath (Bc). PHP 8.3+, ext-bcmath is optional and only needed for Bc.
riimu/kit-baseconversion
5554 Downloads
Arbitrary precision number base conversion library
cydrickn/number
10462 Downloads
An arbitrary precision for floating point Numbers for PHP