mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-12 02:56:44 +00:00
Mrand of zero to any multiple should return 0 (#1773)
This commit is contained in:
@@ -851,7 +851,7 @@ class MathTrig
|
||||
$multiple = Functions::flattenSingleValue($multiple);
|
||||
|
||||
if ((is_numeric($number)) && (is_numeric($multiple))) {
|
||||
if ($multiple == 0) {
|
||||
if ($number == 0 || $multiple == 0) {
|
||||
return 0;
|
||||
}
|
||||
if ((self::SIGN($number)) == (self::SIGN($multiple))) {
|
||||
|
||||
@@ -41,6 +41,11 @@ return [
|
||||
31415.92654,
|
||||
1,
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
5,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
5,
|
||||
|
||||
Reference in New Issue
Block a user