mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 21:00:57 +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) {
|
weather.roundValue = function (temperature) {
|
||||||
return Math.round(temperature * 10) / 10;
|
return parseFloat(temperature).toFixed(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
weather.kmh2Beaufort = function(kmh) {
|
weather.kmh2Beaufort = function(kmh) {
|
||||||
|
Reference in New Issue
Block a user