Update of /cvsroot/phpweather/phpweather-1.x
In directory usw-pr-cvs1:/tmp/cvs-serv18322
Modified Files:
phpweather.inc
Log Message:
The arguments passed to pow() are now explicitly casted to float.
Index: phpweather.inc
===================================================================
RCS file: /cvsroot/phpweather/phpweather-1.x/phpweather.inc,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- phpweather.inc 17 May 2002 22:12:13 -0000 1.5
+++ phpweather.inc 13 Jun 2002 21:59:07 -0000 1.6
@@ -961,9 +961,9 @@
$decoded_metar['wind_miles_per_hour'] > '3'){
$decoded_metar['windchill_f'] =
number_format(35.74 + 0.6215 * $decoded_metar['temp_f'] -
- 35.75 * pow($decoded_metar['wind_miles_per_hour'], 0.16) +
+ 35.75 * pow((float)$decoded_metar['wind_miles_per_hour'], 0.16) +
0.4275 * $decoded_metar['temp_f'] *
- pow($decoded_metar['wind_miles_per_hour'],0.16));
+ pow((float)$decoded_metar['wind_miles_per_hour'],0.16));
$decoded_metar['windchill_c'] =
number_format(13.112 + 0.6215 * $decoded_metar['temp_c'] -
13.37 * pow(($decoded_metar['wind_miles_per_hour']/1.609), 0.16) +
|