note 57634 rejected from function.bcdiv by didou
| From: | didou@php.net | Date: | Sat, 27 Jan 2007 14:14:50 +0000 |
| Subject: | note 57634 rejected from function.bcdiv by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122264@lists.php.net to get a copy of this message | ||
Note Submitter: artmine77 at yahoo dot com
----
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.