PHPackages                             shtse8/arbimath - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. shtse8/arbimath

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shtse8/arbimath
===============

Arbitrary precision mathematics library

301[1 PRs](https://github.com/shtse8/ArbiMath/pulls)PHPCI failing

Since Jul 27Pushed 2w ago2 watchersCompare

[ Source](https://github.com/shtse8/ArbiMath)[ Packagist](https://packagist.org/packages/shtse8/arbimath)[ RSS](/packages/shtse8-arbimath/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (4)Used By (0)

🚀 ArbiMath PHP: Unleash Infinite Precision in Your PHP Applications! 🚀
======================================================================

[](#-arbimath-php-unleash-infinite-precision-in-your-php-applications-)

 [![ArbiMath — Sylphx Mark banner](https://camo.githubusercontent.com/ab0cb1c2624e36f0be96dc48ca051354c6ae1d6a3792ed4571c37de7189a504d/68747470733a2f2f6d61726b2e73796c7068782e636f6d2f6170692f76312f62616e6e65723f747970653d77617665267468656d653d746f6b796f6e6967687426746578743d417262694d61746826646573633d412b5048502b382e302b6c6962726172792b666f722b6172626974726172792b707265636973696f6e2b6d617468656d61746963732b7573696e672b42434d6174682532432b666561747572696e672b616e266865696768743d32303026616e696d6174696f6e3d72697365266372656469743d30)](https://camo.githubusercontent.com/ab0cb1c2624e36f0be96dc48ca051354c6ae1d6a3792ed4571c37de7189a504d/68747470733a2f2f6d61726b2e73796c7068782e636f6d2f6170692f76312f62616e6e65723f747970653d77617665267468656d653d746f6b796f6e6967687426746578743d417262694d61746826646573633d412b5048502b382e302b6c6962726172792b666f722b6172626974726172792b707265636973696f6e2b6d617468656d61746963732b7573696e672b42434d6174682532432b666561747572696e672b616e266865696768743d32303026616e696d6174696f6e3d72697365266372656469743d30)

[![Latest Stable Version](https://camo.githubusercontent.com/5ec46dae15ad3001468726e5964ea91a6776a6db9da0218b3e771ff8a688a3af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7368747365382f617262696d6174682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shtse8/arbimath)[![Total Downloads](https://camo.githubusercontent.com/06b43c3edd4496e6015e4928721e7f52d8e088c4de87cef32e9b106e797a9d3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7368747365382f617262696d6174682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shtse8/arbimath)[![License](https://camo.githubusercontent.com/143ddee2326094a760da0e9ec3260546473e44b3ee4ecb03dc79b0bcc206d0d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7368747365382f617262696d6174682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shtse8/arbimath)

**Tired of floating-point inaccuracies ruining your calculations? Need to handle numbers larger than your server's RAM?**

Standard PHP math functions can hit limitations quickly, leading to subtle bugs and precision errors, especially in critical applications like finance, scientific computing, or cryptography.

**✨ Enter ArbiMath PHP: Your ultimate weapon for high-precision mathematics in PHP! ✨**

ArbiMath PHP provides a robust, intuitive, and type-safe `ArbiNumber` class, built upon the battle-tested BCMath extension, allowing you to perform calculations with **virtually unlimited precision**. Say goodbye to precision headaches and hello to reliable results!

Why Choose ArbiMath PHP? 🤔
--------------------------

[](#why-choose-arbimath-php-)

- **🎯 Uncompromising Precision:** Perform calculations with the exactness you demand. No more rounding errors, no more approximations. Perfect for financial systems, scientific simulations, and anywhere accuracy is paramount.
- **🐘 Handle HUGE Numbers Effortlessly:** Whether it's astronomical figures or complex cryptographic keys, ArbiMath PHP manages numbers of any magnitude with ease.
- **💻 Clean &amp; Intuitive API:** A thoughtfully designed object-oriented interface makes complex math feel simple. Chain methods for elegant and readable code.
- **✨ Optional Operator Overloading:** Want to write `$a + $b` instead of `$a->add($b)`? Install the (optional) PECL Operator extension and enjoy natural mathematical syntax!
- **⚡ Performance Optimized:** Leverages the highly optimized, low-level BCMath extension for reliable speed.
- \*\* nowoczesny PHP Ready:\*\* Built for PHP 8.0+, embracing strict types and PSR-12 standards for modern development workflows.

Quick Start ⚡
-------------

[](#quick-start-)

```
