mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-22 21:11:17 +00:00
force min/max temp to one decimal place
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user