Skip to content

Commit bdefd8e

Browse files
authored
Merge pull request #1 from piurafunk/master
Correct 'decimal_avg' helper function to average results.
2 parents dfa96e7 + d986ee7 commit bdefd8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ function decimal_sum($values, int $precision = Decimal::DEFAULT_PRECISION): Deci
4343
*/
4444
function decimal_avg($values, int $precision = Decimal::DEFAULT_PRECISION): Decimal
4545
{
46-
return Decimal::sum($values, $precision);
46+
return Decimal::avg($values, $precision);
4747
}
4848
}

0 commit comments

Comments
 (0)