ID: 10116
Updated by: jmcastagnetto
Old Status: Closed
Status: Bogus
Bug Type: BC math related
Operating System: Windows 98
PHP Version: 4.0.4pl1

Previous Comments:

[2001-04-02 09:29:49] [EMAIL PROTECTED]

Function bcpow is supposed to work with arbitrary precision
numbers. However, it seems to treat its second argument
as an integer.


echo bcpow(256,0.5);
echo bcpow(256,0.99);

both produce 1. It seems that the second argument is
truncated down to integer value. Either this is a
"feature" and documentation must be changed or it is
a bug of either Windows version or even other versions
of BCMath/PHP.

bcpow(0.5,2); produces 0.25, which is all right. 

-- Dan


Edit this bug report at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to