Releases: danhunsaker/bcmath
PHPDocs
Integer Divide and Fractionless Power
Expands the parser to support more of the existing functionality. These operators should have been in the previous release...
Expression Parser
BC::math has a new feature, an expression parser, which allows you to use expression syntax instead of function calls to perform whatever operations you require. That means instead of writing:
BC::add(BC::add(BC::mul($a, BC::pow($x, 2)), BC::mul($b, $x)), $c);
you can write:
BC::parse("{$a} * {$x} ^ 2 + {$b} * {$x} + {$c}");
or even:
BC::parse('{a} * {x} ^ 2 + {b} * {x} + {c}', compact('a', 'b', 'c', 'x'));
More information about this feature is available in the README.
Testing Sanity Update
This release simply fixes the way tests are run on Travis so they will all pass. It does this by allowing older versions of PHPUnit and PHPSpec-Code-Coverage packages which will run on PHP 5.4 and 5.5, and not skipping platform requirements checks for any PHP version. No functionality was changed.
Initial Release
This library is feature-complete and ready for use. Testing has been somewhat minimal, and some optimizations might be possible, but everything is functional. Since the majority of the functionality is based on wrapping existing functions, at least that portion should be considered production-ready. The extended functionality methods, documented in the README, should also be production-ready, but skepticism is expected in their case.
Pull requests for bug fixes, optimizations, and additional features are welcome!