GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: February 11 2012 at 08:09 | IP Logged
|
|
|
Just a little informational posting to help anyone trying to solve the problem I have been fighting for many months.
My Weather fetch processing has thrown Syntax Errors for over a year, and I always thought it was because I was getting errors from my ph_getURL() effort.
This morning, I got frustrated and started debugging the failures in earnest.
What I discovered was that when the WindChill was a negative number (eg, -3) that my
function was yielding a SYNTAX ERROR.
Experimenting further, even a simple round(-3,0) fails.
By surrounding the value with "()", it works.
Thus:
round(({WINDCHILL}),0), or simply
round((-3),0)
works!
Edited by GadgetGuy - February 11 2012 at 08:09
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|