rounding nutrition results
This commit is contained in:
parent
4bc8a58534
commit
80f4aab76f
@ -20,6 +20,10 @@ class NutritionCalculator
|
||||
}
|
||||
}
|
||||
|
||||
foreach($nutrition as $k => $v){
|
||||
$nutrition[$k] = round($v, 2);
|
||||
}
|
||||
|
||||
return $nutrition;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user