float > string.

This commit is contained in:
James Cole 2016-02-08 21:07:11 +01:00
parent 9f29a2e04f
commit 7679721007

View File

@ -160,7 +160,7 @@ class ReportController extends Controller
while ($start < $end) {
$currentIncome = $this->pluckFromArray($start->year, $earned);
$currentExpense = $this->pluckFromArray($start->year, $spent) * -1;
$currentExpense = bcmul($this->pluckFromArray($start->year, $spent), '-1');
$income = bcadd($income, $currentIncome);
$expense = bcadd($expense, $currentExpense);