Kozinak196 / emweather

Automatically exported from code.google.com/p/emweather
0 stars 0 forks source link

Widget: rounding error on negative temperatures #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. When the temperature at a location is reported with a single precision 
decimal, the temperature shown on the widget, rounded up to the next degree if 
the decimal is >= .5
2. I recently witnessed a temperature reported as -0.5 in the app. The widget 
reported this temperature as "0"

What is the expected output? What do you see instead?
When rounding negative numbers, a decimal value of -0.5 should be rounded to 
-1, not 0. The rounding should always be away from zero. 

What version of EmWeather are you using? What is your OS API, ie. 1.5
(Cupcake), 1.6 (Donut), 2.1 (Eclair), 2.2 (Froyo) etc. (if you know it)

Please provide any additional information below.

Original issue reported on code.google.com by zippanova@gmail.com on 15 Oct 2011 at 1:53

GoogleCodeExporter commented 8 years ago
Looking into this right now, thanks for the report.

Original comment by emweat...@gmail.com on 5 Nov 2011 at 9:20

GoogleCodeExporter commented 8 years ago
Fixed in 0.9.6.0.  I am going to make some more changes and test before 
uploading to the market, feel free to grab it from the downloads section for 
now.

Thanks for the bug report.

Original comment by emweat...@gmail.com on 6 Nov 2011 at 2:11