10-24-2003, 07:25 AM -
Has anyone noticed that the degrees Celsius are almost always 1 off compared to the real value?
Weatherunderground provides temperatures in both Fahrenheit and Celsius, but for the plugin it seems impossible to simply read the Celsius value and display that (it will show an F).
So instead, it grabs the Fahrenheit value and converts it to Celsius, but I noticed it does not round but simply cut off the fractions, which, of course, always results in too low values.
The formula is: C = (F-32) * 5 / 9 (note: this is not an integer divide )
Weatherunderground provides temperatures in both Fahrenheit and Celsius, but for the plugin it seems impossible to simply read the Celsius value and display that (it will show an F).
So instead, it grabs the Fahrenheit value and converts it to Celsius, but I noticed it does not round but simply cut off the fractions, which, of course, always results in too low values.
The formula is: C = (F-32) * 5 / 9 (note: this is not an integer divide )
Windows 7, IE 9.0, Shell 6.0.6000.16386, TLB 4.2.3 beta