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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ttalu at neti dot ee
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC