Popularity
2.9
Growing
Activity
0.0
Stable
141
7
24

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: 0
Programming language: JavaScript
License: Apache License 2.0
Tags: Numbers     Math     bcmath    

Math alternatives and similar libraries

Based on the "Numbers" category

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

Add another 'Numbers' Library