Skip to content

Releases: danhunsaker/bcmath

PHPDocs

29 May 21:15
Compare
Choose a tag to compare

This version includes PHPDocs, which can be very useful with IDEs that parse them.

Integer Divide and Fractionless Power

24 Feb 20:41
Compare
Choose a tag to compare

Expands the parser to support more of the existing functionality. These operators should have been in the previous release...

Expression Parser

22 Feb 21:16
Compare
Choose a tag to compare

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

17 Feb 19:58
Compare
Choose a tag to compare

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

16 Feb 04:59
Compare
Choose a tag to compare

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!