php.net |  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
Votes:2
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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
12 + 9 = ?
Subscribe to this entry?

 
 [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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-06 12:30 UTC] hholzgra@php.net
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] iliaa@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 12:01:29 2024 UTC