rounding nutrition results

This commit is contained in:
Artur Nowakowski 2020-01-06 17:58:55 +01:00
parent 4bc8a58534
commit 80f4aab76f

View File

@ -20,6 +20,10 @@ class NutritionCalculator
}
}
foreach($nutrition as $k => $v){
$nutrition[$k] = round($v, 2);
}
return $nutrition;
}
}