php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #22942 bcpow
Submitted: 2003-03-28 15:51 UTC Modified: 2003-03-31 08:55 UTC
From: aleon at sedesa dot com dot ar Assigned: adam (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.3.1 OS: linux 2.4.18
Private report: No CVE-ID: None
 [2003-03-28 15:51 UTC] aleon at sedesa dot com dot ar
bcpow(1.0183333333,0.9990867579) this gives 1 when it should be 1.018316438, no matter wich scale i choose. If you approach 0.9990867579 to 0.9999999999999, then it works.

'./configure' '--with-mysql' '--with-gd' '--with-zlib' '--with-apxs'  --enable-bcmath

P3 500 mhz, 256 ram

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-29 21:09 UTC] pollita@php.net
libbcmath, unfortunately, does not support non-integer exponents in either raise (bcpow) or raisemod (bcpowmod).

libgmp, sadly, is no better.

Documentation should be updated to reflect.
 [2003-03-31 08:55 UTC] adam@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Fixed, "y" in bcpow and bcpowmod are now listed
as type integer.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 06:01:27 2024 UTC