I've set up a server with CentOS 7, SQL Server 2017, and UnixODBC
In tsql, the numbers are correct.
But when I look at isql, the decimals are separated by a comma (,) instead of a period (.).
How can I fix this?
Q: What I really want is to use the number in PHP (you're complaining that the number is having a formatting problem)
UPDATE: The error that appears in PHP is: Notice: A well-formed numeric value encountered in /usr/share/nginx/html/loja3/info_vend/achapeca.php on line 789
I saw now that the error occurs when I use php's number_format
UPDATE 2:
I ran the var_dump and Windows returned: string (12) "3.5000000000" In CentOS: string (3) "3.5"
UPDATE 3:
It seems like the solution is to remove the number_format. But I find it strange because you need the number_format in Windows and not CentOS. Any additional verdicts or tips?