mirror of https://github.com/php/php-src
Browse Source
As of commit 90dcbbe (PHP-7.2+) bcmod() supports non-integral
parameters as well. Since formerly only integer modulus has been
supported, it did not make much sense to cater to the scale with regard
to the result. However, now it does for consistency with other BCMath
operations.
Therefore, we add support for an optional `scale` parameter and fall
back to the default scale (`bcmath.scale`) as usual.
pull/2743/merge
committed by
Sara Golemon
3 changed files with 21 additions and 8 deletions
Loading…
Reference in new issue