#33122 [Csd->Bgs]: gmp_div_q calculate error

From: Date: Tue, 24 May 2005 10:34:29 +0000
Subject: #33122 [Csd->Bgs]: gmp_div_q calculate error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79435@lists.php.net to get a copy of this message
ID: 33122 Updated by: tony2001@php.net Reported By: ttalu at neti dot ee -Status: Closed +Status: Bogus Bug Type: Math related Operating System: Unix PHP Version: 4.3.10 New Comment: . Previous Comments: ------------------------------------------------------------------------ [2005-05-24 11:37:48] ttalu at neti dot ee My mistake... ------------------------------------------------------------------------ [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

« previous php.bugs (#79435) next »