diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2017-09-09 15:43:02 +0200 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2017-11-06 17:26:52 -0500 |
commit | b152633ecb2030e2de1f83d2d42193185ea1bc21 (patch) | |
tree | 11ad6377b3c60ca605fdcd4857052613d202b71b /ext/reflection/php_reflection.c | |
parent | 5cdf37e6033cf7053132126157747511c2c039f2 (diff) | |
download | php-git-b152633ecb2030e2de1f83d2d42193185ea1bc21.tar.gz |
Scale support for bcmod()
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.
Diffstat (limited to 'ext/reflection/php_reflection.c')
0 files changed, 0 insertions, 0 deletions