|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21628 decimal numbers without decimal places
Submitted: 2003-01-14 02:41 UTC Modified: 2003-01-27 22:42 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: czapel at go2 dot pl Assigned:
Status: No Feedback Package: *Math Functions
PHP Version: 4.2.2 OS: SuSE Linux 8.0
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
47 - 20 = ?
Subscribe to this entry?

 [2003-01-14 02:41 UTC] czapel at go2 dot pl
I have some unexplicable problem, when I try to perform any mathematical
operation. This is my example script:
echo microtime()."<br>";
echo gettype($a)."<br>";
echo gettype($b)."<br>";
echo bcmul($a,bcmul($b,$b,10),10)."<br>";
echo $c;
To make sure that browser doesn't read from cache I put microtime. The
problem is that sometimes as a result I get number with decimal places (and
this is ok), but sometimes I get just integers as a result, in this case it
is 4. Maybe somebody has already heart about that. I have no idea, how
should I lose this problem. Please, help me.



Configuration I use:
PHP 4.2.2
SuSE Linux
Apache 1.3.12


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-27 22:42 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Jan 25 02:03:35 2022 UTC