#33122 [Bgs->Csd]: gmp_div_q calculate error
| From: | ttalu at neti dot ee | Date: | Tue, 24 May 2005 09:37:49 +0000 |
| Subject: | #33122 [Bgs->Csd]: gmp_div_q calculate error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79432@lists.php.net to get a copy of this message | ||
ID: 33122
User updated by: ttalu at neti dot ee
Reported By: ttalu at neti dot ee
-Status: Bogus
+Status: Closed
Bug Type: Math related
Operating System: Unix
PHP Version: 4.3.10
New Comment:
My mistake...
Previous Comments:
------------------------------------------------------------------------
[2005-05-24 11:18:57] tony2001@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
resource gmp_div_q ( resource a, resource b [, int round] )
------------------------------------------------------------------------
[2005-05-24 11:15:14] ttalu at neti dot ee
Description:
------------
gmp_div_q function do not give expected result
Reproduce code:
---------------
$c1=20;
$columns=3;
$iteration_count = gmp_div_q($c1,$columns, GMP_ROUND_PLUSINF);
echo $iteration_count;
Expected result:
----------------
7
Actual result:
--------------
Resource id #2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33122&edit=1