Re: Yet Another Dayfile Reader (PHP)
Posted: Wed 05 Feb 2014 11:45 am
Hi,
Beta release tested quickly this morning.
For some new items like "DP" i had the same warning message(Warning: number_format() expects parameter 1 to be double, string given in.... ) that i have had with "Windspeed" at some point.
In the code i had to replace by (as you did in DoWind() line 638) in line 388,396,413,579 .
I guess that some values without decimal part are considered as string by number_format() function
I'll try to check it this evening.
It's strange that i'm the only one with this problem
Beta release tested quickly this morning.
For some new items like "DP" i had the same warning message(Warning: number_format() expects parameter 1 to be double, string given in.... ) that i have had with "Windspeed" at some point.
In the code i had to replace
Code: Select all
number_format($thisValue,---
Code: Select all
number_format($thisValue * 1],----
I guess that some values without decimal part are considered as string by number_format() function
I'll try to check it this evening.
It's strange that i'm the only one with this problem