I've been trying to solve this problem for the whole day, and no solution yet.
I have a test bench on windows using XAMPP, when I retrieve a float value from the database, I get the value like this:
mysqli normal query : 0.67
mysqli prepared stmt: 0.67
but when I upload the script and test it on the web using php5-fpm and MariaDB on ubuntu, I get this results:
mysqli normal query : 0.67
mysqli prepared stmt: 0.6700000166893
I dont know why this variance between the precision of the two methods