cleanup for metric floating point

This commit is contained in:
Matt Walsh 2022-08-04 13:08:11 -05:00
parent 16dd6299a9
commit 6ad9b86abc

View file

@ -82,6 +82,8 @@ class LatestObservations extends WeatherDisplay {
Temperature = utils.units.celsiusToFahrenheit(Temperature); Temperature = utils.units.celsiusToFahrenheit(Temperature);
WindSpeed = utils.units.kphToMph(WindSpeed); WindSpeed = utils.units.kphToMph(WindSpeed);
} }
WindSpeed = Math.round(WindSpeed);
Temperature = Math.round(Temperature);
const fill = {}; const fill = {};
fill.location = utils.string.locationCleanup(condition.city).substr(0, 14); fill.location = utils.string.locationCleanup(condition.city).substr(0, 14);