note 57634 added to function.bcdiv
| From: | artmine77 at yahoo dot com | Date: | Sun, 09 Oct 2005 17:47:50 +0000 |
| Subject: | note 57634 added to function.bcdiv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96755@lists.php.net to get a copy of this message | ||
Block 1:
{
$arg1="1E+11";
$arg2="5";
$ret=bcdiv($arg1,$arg2,0); // $ret=0 (calculation error)
}
Block 2:
{
$arg1=1E+11;
$arg2=5;
$ret=bcdiv($arg1,$arg2,0); // $ret=20000000000
}
Why do the manual says that $arg1 and $arg2 should be strings when that's when the error
happens? If someone knows, I would appreciate the answer.
----
Manual Page -- http://www.php.net/manual/en/function.bcdiv.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57634
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57634&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57634&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57634&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57634&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57634&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57634&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57634&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57634&report=yes
Search -- http://master.php.net/manage/user-notes.php