|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18757 Error making a simple math operation}
Submitted: 2002-08-06 11:47 UTC Modified: 2002-09-29 22:21 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: r_saki at yahoo dot com Assigned:
Status: Not a bug Package: Math related
PHP Version: 4CVS-2002-08-06 OS: Unix
Private report: No CVE-ID: None
 [2002-08-06 11:47 UTC] r_saki at yahoo dot com
I have a Raq4 Cobalt server, so I did a page of mathematical code, when the code make a simple operation, it lose the decimals of a variable, so what can I do  to solve that problem?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-06 12:30 UTC]
sounds like the locale problem again

for now please try to add 

  setlocale(LC_NUMERIC, "C");

at the top of your scripts 
or try to globaly change the locale 
in your webserver startscript 

 [2002-08-06 13:02 UTC] r_saki at yahoo dot com
I read your comment and I try to make it and the result it?s the same, so what can i do to try to globaly change the locale in my webserver startscript? ?cause I don?t configure PHP inicially.
thank you for all and my best regards
 [2002-09-29 22:21 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

Could you please provide the smallest possible example showing this problem as well as the output that you get.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 09 19:01:27 2023 UTC