OK, I'm doing floating point math. I get the correct result on one of my servers, but my main server it gives incorrect results. One is php 4.3.10 the other is .11, I do not believe this has anything to do with the issue though. I have compared the phpinfo on both and cannot spot a difference for the life of me. Would anyone have a suggestion on this? No I didn't contact the host yet.
noppid, can you post a sample of your code along with the results from both versions? What version is the main server running? Are the servers running on different operating systems?
I have had problems with floats on php 4.3.10/Win2000, but on my live (linux) server never had a problem...
Both the OS and the CPU can limit the precision of your calaulations, so php may not be at fault, and with out knowing the legth of your "number" would guess the CPU is not as good in one machine.
I have to do the homework now. All of you have been big help. I can now compose a useful help ticket. I'll check back soon.
Just ran across this in my php.ini ; The number of significant digits displayed in floating point numbers. precision = 14 Code (markup): It's listed in PHPInfo as Precision but, at least to me, I wouldn't have connected precision to floating point numbers (even though it makes sense now.)
That was the first thing I checked. Both my servers are set the same. I have not had time to pursue this. It's out now and not worth the effort ATM to me. The tools here serve my purpose.