! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
-0.2C rounds to -0C
Status:
RESOLVED: WONTFIX
Priority:
Very Low
Product:
Xfce4-weather-plugin
Component:
General

Comments

Description beardedlinuxgeek 2015-01-07 00:23:01 CET
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.
Comment 1 Harald Judt 2015-01-07 00:52:20 CET
(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?
Comment 2 beardedlinuxgeek 2015-01-07 01:12:51 CET
Because there is no such temperature as -0 °C. Signed zero matters in computing, but not in weather.
Comment 3 beardedlinuxgeek 2015-01-07 01:31:13 CET
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.
Comment 4 Harald Judt 2015-01-07 01:52:45 CET
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.
Comment 5 beardedlinuxgeek 2015-01-07 02:30:23 CET
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.

Bug #11424

Reported by:
beardedlinuxgeek
Reported on: 2015-01-07
Last modified on: 2015-01-07

People

Assignee:
Harald Judt
CC List:
1 user

Version

Attachments

screenshot of the widget (26.10 KB, image/png)
2015-01-07 00:23 CET , beardedlinuxgeek
no flags

Additional information