From 7c3a19bf89aefd698dfb5b6762f727ec6e41301a Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 6 Jan 2016 00:35:37 -0800 Subject: [PATCH] Increase precision kept for kilogram values. --- static/babystats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/babystats.js b/static/babystats.js index 542dd74..c6874ba 100644 --- a/static/babystats.js +++ b/static/babystats.js @@ -591,7 +591,7 @@ BabyStats.prototype.buildLayout_ = function() { var lb = ( (parseFloat(this.weightLb_.value) || 0) + ((parseFloat(this.weightOz_.value) || 0) / 16)); - this.weightKg_.value = Math.round((lb / 2.2046) * 10) / 10; + this.weightKg_.value = Math.round((lb / 2.2046) * 100) / 100; }.bind(this); this.weightLb_ = document.createElement('input');