From 6ad9b86abcb77d0cdb8624179c6722d833aa3475 Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Thu, 4 Aug 2022 13:08:11 -0500 Subject: [PATCH] cleanup for metric floating point --- server/scripts/modules/latestobservations.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/scripts/modules/latestobservations.js b/server/scripts/modules/latestobservations.js index 61711d6..dca1250 100644 --- a/server/scripts/modules/latestobservations.js +++ b/server/scripts/modules/latestobservations.js @@ -82,6 +82,8 @@ class LatestObservations extends WeatherDisplay { Temperature = utils.units.celsiusToFahrenheit(Temperature); WindSpeed = utils.units.kphToMph(WindSpeed); } + WindSpeed = Math.round(WindSpeed); + Temperature = Math.round(Temperature); const fill = {}; fill.location = utils.string.locationCleanup(condition.city).substr(0, 14);