[Weather] Fahrenheit to Celsius conversion - Rounds incorrectly
Started by Dracula


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


2 posts in this topic
Dracula
Senior Member
****


0
407 posts 28 threads Joined: Dec 2002
10-24-2003, 07:25 AM -
#1
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 Wink)
Windows 7, IE 9.0, Shell 6.0.6000.16386, TLB 4.2.3 beta


Messages In This Thread
[No subject] - by Dracula - 10-24-2003, 07:25 AM
[No subject] - by shapeshifter - 10-24-2003, 07:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)