mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
force min/max temp to one decimal place
This commit is contained in:
parent
07ec697e2c
commit
dc7ee44e7f
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user