Hi,
I searched the archives but did not found anything.
It seem that the round function behavior has changed in php 4.4.x (I don't
have 4.4.1 handy for testing).
In 4.3.11, the output of round("23.005",2) is 23.01 which is mathematically
correct.
In 4.4.2, the output is 23 which is not correct.
do
$fp=fopen("some_file","r");
while (!feof($fp))
{
$line = fscanf($fp, "%d %d");
list ($var1, $var2) = $line;
// some treatment
}
fclose($fp);
It work just fine. Seems a problem with fscanf.
Has someone ever experienced this? Any advises?
Oh
2 matches
Mail list logo