force min/max temp to one decimal place

This commit is contained in:
Jon Heller 2015-10-19 01:28:51 -04:00
parent 07ec697e2c
commit dc7ee44e7f

View File

@ -35,7 +35,7 @@ var weather = {
} }
weather.roundValue = function (temperature) { weather.roundValue = function (temperature) {
return Math.round(temperature * 10) / 10; return parseFloat(temperature).toFixed(1);
} }
weather.kmh2Beaufort = function(kmh) { weather.kmh2Beaufort = function(kmh) {