The result of querying the
sql statement in the database is 0.11, but after connecting to the database through PDO, the result becomes .11, with a 0 missing in front, but 1.11 can be displayed normally. Yes, I don’t know what caused it. Looking for a solution~Thank you very much
sql statement in the database is 0.11, but after connecting to the database through PDO, the result becomes .11, with a 0 missing in front, but 1.11 can be displayed normally. Yes, I don’t know what caused it. Looking for a solution~Thank you very much
0.11
is the same as .11
can be recognized by PHP when reading
If you are really worried, just echo (float).11;