### Description

Moontoast\Math is useful for working with integers that are larger than
(or may become larger than, through mathematical computations) PHP's max
integer value for a given system. On 64-bit systems, this number is
9223372036854775807. On 32-bit systems, it is 2147483647. When overflowing
this boundary, PHP turns the number into a float, reducing precision (see
the PHP manual entry for Integers).

Moontoast\Math provides an easy-to-use wrapper around the bcmath extension,
allowing one to perform mathematical calculations on numeric strings,
going well outside the integer range of the system and maintaining arbitrary
precision for more precise calculations.

See the docs/ directory for generated API documentation.

Moontoast\Math requires PHP 5.3+ and the bcmath extension.

**Monthly Downloads**: 287,069

**Programming language**: JavaScript

**License**: Apache License 2.0

# Math alternatives and related libraries

Based on the "Numbers" category

** Code Quality Rankings and insights are calculated and provided by Lumnify.*

*They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.*

*Do you think we are missing an alternative of Math or a related project?*

### Math Recommendations

**There are no recommendations yet. Be the first to promote Math!**

Have you used Math? Share your experience. Write a short recommendation and Math, you and your project will be promoted on Awesome PHP.

** Recommend Math**

### Recently added Math resources

**Be the first to add one!**