PHPackages                             iamvar/math - 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. iamvar/math

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

iamvar/math
===========

Calculate expression, using bcmath functions.

v1.0.1(2y ago)16MITPHPPHP ^8.1

Since May 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/iamvar/math)[ Packagist](https://packagist.org/packages/iamvar/math)[ RSS](/packages/iamvar-math/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Math
====

[](#math)

Every developer knows: float is not the best choice for precise calculation.

```
php > var_dump(1.2 * 3);
float(3.5999999999999996)
```

We have bcmath, you say.

Yes, but calculating small expression, like `($a + $b * $c - $d) / $e` becomes as heavy as

```
