[php-src] Issue #8291: bcsub incorrect result when second operand precision is higher than the scale applied to the result

From: Date: Fri, 01 Apr 2022 16:09:46 +0000
Subject: [php-src] Issue #8291: bcsub incorrect result when second operand precision is higher than the scale applied to the result
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240640@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8291 Comment Author: damianwadley * [bc does not respect scale during subtraction operations](https://www.gnu.org/software/bc/manual/html_mono/bc.html#SEC10) * As far as I know, where used, scale operates by truncation without no rounding, so when PHP "scales" the result of 2.893 (because bc doesn't) the output is 2.89

« previous php.bugs (#240640) next »