PHP incorrect values functions max,min

Monday, March 10, 2014

i have a problem with a script, the script read a file (csv) and stores the last value of each line in an array, then i calculate the maximun,minimun and average of the values in the array, but with big files the script give me an incorrect value for the maximun and minimun, here you can download the script and two files, with the file 8.csv the calculations are correct but with the file 1.csv the values are wrong, the only difference i see is that the file 1.csv is much larger than the other. Thanks for your help!!!


http://ift.tt/OcR74o







http://ift.tt/1fiMGzI