From dc7ee44e7fc2dac98776881851f2b7777d2f107b Mon Sep 17 00:00:00 2001 From: Jon Heller Date: Mon, 19 Oct 2015 01:28:51 -0400 Subject: [PATCH] force min/max temp to one decimal place --- js/weather/weather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/weather/weather.js b/js/weather/weather.js index f7b3c3de..391bc9be 100644 --- a/js/weather/weather.js +++ b/js/weather/weather.js @@ -35,7 +35,7 @@ var weather = { } weather.roundValue = function (temperature) { - return Math.round(temperature * 10) / 10; + return parseFloat(temperature).toFixed(1); } weather.kmh2Beaufort = function(kmh) {