Popularity
2.8
Growing
Activity
0.0
Stable
138
7
25

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
Tags: Numbers     Math     bcmath    

Math alternatives and related libraries

Based on the "Numbers" category

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

Add another 'Numbers' Library

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

Do you know of a usefull tutorial, book or news relevant to Math?
Be the first to add one!