Skip to content

Commit

Permalink
use Math.round() not round()
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Sep 2, 2017
1 parent b8e3dd3 commit ec448fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/determine-basal/autosens.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function detectSensitivityandCarbAbsorption(inputs) {
if (treatment.carbs >= 1) {
mealCOB += parseFloat(treatment.carbs);
mealCarbs += parseFloat(treatment.carbs);
displayCOB = round(mealCOB);
displayCOB = Math.round(mealCOB);
process.stderr.write(displayCOB.toString());
}
meals.pop();
Expand Down

0 comments on commit ec448fc

Please sign in to comment.