note 30931 added to function.bcpow

From: Date: Thu, 03 Apr 2003 17:43:55 +0000
Subject: note 30931 added to function.bcpow
Groups: php.notes 
Request: Send a blank email to php-notes+get-46175@lists.php.net to get a copy of this message
Apparently, bcpow() rounds it's 2nd argument (the power to raise the number to) to the nearest integer. anything less than 1 seems to have been rounded off to 0. Trying it with something bcpow(4, 2.2, 10) also returns the 4 to the power of 2 (=16). The 2nd argument can only be an integer it seems, and not a float. -- http://www.php.net/manual/en/function.bcpow.php http://master.php.net/manage/user-notes.php?action=edit+30931 http://master.php.net/manage/user-notes.php?action=delete+30931 http://master.php.net/manage/user-notes.php?action=reject+30931

« previous php.notes (#46175) next »