1
0
mirror of https://github.com/danog/math.git synced 2024-12-02 17:28:22 +01:00
Commit Graph

60 Commits

Author SHA1 Message Date
Benjamin Morel
908e73e8e4 unserialize() now throws an exception when called directly
This guarantees that immutability cannot be broken.
2015-06-04 12:14:42 +02:00
Benjamin Morel
53a61b46a7 Add BigDecimal::divideAndRemainder() 2015-06-02 22:08:56 +02:00
Benjamin Morel
49ea5a085e Reworked Travis build matrix
Travis now supports merged code coverage reports, so we do not need to merge them ourselves.
2015-05-22 13:39:59 +02:00
Benjamin Morel
9ab6358fc2 min() and max() now use variadics 2015-05-22 13:19:08 +02:00
Benjamin Morel
4d18be75e1 Tests now run a single calculator instance at a time 2015-01-27 17:38:31 +01:00
Benjamin Morel
61968fcee9 Added BigInteger::power() 2014-09-01 19:10:04 +02:00
Benjamin Morel
09a4aa2895 Imposed a limit on the power() exponent
Just discovered that bcpow() on HHVM has a weird exponent limit of 2^27+1 (empirically determined), after which it triggers an "exponent too large in raise" error.
Anyway, an exponent of 1,000,000 is more than reasonable for most, if not all, use cases.
2014-09-01 18:38:00 +02:00
Benjamin Morel
d4a2a45f25 Fixed tests for HHVM with BCMath 2014-09-01 17:38:18 +02:00
Benjamin Morel
2b8ebcd55e Changed tests namespace to Brick\Math\Tests 2014-08-31 14:24:10 +02:00
Benjamin Morel
5dfd5c45d0 Import from the incubator 2014-08-31 12:13:46 +00:00