Created attachment 5848 screenshot of the widget From the raw data, the temperature is -0.2C. When displayed in the panel, it shows -0C. This should probably just be converted to 0C.
(In reply to beardedlinuxgeek from comment #0) > > From the raw data, the temperature is -0.2C. When displayed in the panel, it > shows -0C. This should probably just be converted to 0C. Why?
Because there is no such temperature as -0 °C. Signed zero matters in computing, but not in weather.
I can see the argument of a scientist using +0/-0 Celsius when rounding because it indicates whether the rounding occurred below or above the freezing point. But in the panel item, this is only affecting people who have selected the "Round values" option. These are people who have elected to view less precise data in favor of data which is more pleasing to view. And -0 °C looks weird.
I do not get your argument. As for precision, the rounding will improve that anyway by removing the ".x". Next, if people can bear looking at -15 °C, what problem do they have with -0 °C? I'm not going to write any additional code lines for that special case just to remove a negative signing operator that indicates freezing. Neither will removing it improve the cold weather. Some time ago, I have unintentionally removed a comment in the source code about these considerations, it can still be found here: http://git.xfce.org/panel-plugins/xfce4-weather-plugin/commit/?id=7c982646da5398836bf2089376386f75b88c48fb FYI: There is a temperature sensor in my car, and it also shows -0 °C when it is below freezing. I do not know whether it measured -0.5 or -0.1, yet I *do* consider this important. Hence, closing as won't fix.
Fair enough. I wanted to make you aware of the issue in case it was a mistake (and because I personally don't like it). But if its a conscious decision, then I respect your decision and understand your reasoning. Thank you.