php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33122 gmp_div_q calculate error
Submitted: 2005-05-24 11:15 UTC Modified: 2005-05-24 12:34 UTC
From: ttalu at neti dot ee Assigned:
Status: Not a bug Package: Math related
PHP Version: 4.3.10 OS: Unix
Private report: No CVE-ID: None
 [2005-05-24 11:15 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-24 11:18 UTC] 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:37 UTC] ttalu at neti dot ee
My mistake...
 [2005-05-24 12:34 UTC] tony2001@php.net
.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 01 10:03:45 2023 UTC