PHP 4.0 Bug #10116: bcpow treats second argument as integer

From: Date: Mon, 02 Apr 2001 13:29:50 +0000
Subject: PHP 4.0 Bug #10116: bcpow treats second argument as integer
Groups: php.dev 
Request: Send a blank email to php-dev+get-50586@lists.php.net to get a copy of this message
From: dan.polansky@seznam.cz Operating system: Windows 98 PHP version: 4.0.4pl1 PHP Bug Type: BC math related Bug description: bcpow treats second argument as integer Function bcpow is supposed to work with arbitrary precision numbers. However, it seems to treat its second argument as an integer. E.g. 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. Regards, -- Dan -- Edit Bug report at: http://bugs.php.net/?id=10116&edit=1

« previous php.dev (#50586) next »