Req #70896 [Opn]: Invalid result with decimals

From: Date: Thu, 12 Nov 2015 00:19:24 +0000
Subject: Req #70896 [Opn]: Invalid result with decimals
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197183@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70896&edit=1

 ID:                 70896
 User updated by:    xavier at pandawan-technology dot com
 Reported by:        xavier at pandawan-technology dot com
 Summary:            Invalid result with decimals
 Status:             Open
 Type:               Feature/Change Request
 Package:            GNU MP related
 Operating System:   Any
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

That would be great yeah


Previous Comments:
------------------------------------------------------------------------
[2015-11-12 00:05:17] requinix@php.net

So what you're saying is you want gmp to extend supporting factorials of real numbers, even
though factorial is traditionally only defined for integers?

------------------------------------------------------------------------
[2015-11-11 22:56:29] xavier at pandawan-technology dot com

Description:
------------
---
From manual page: http://www.php.net/function.gmp-fact
---
The value returned is not correct when providing decimal input for any PHP version the function
exists in

Test script:
---------------
See https://3v4l.org/fhsSZ

Expected result:
----------------
~496.6 For full result, see https://www.google.com/#q=5.8!

Actual result:
--------------
120 (correct value for input = 5)


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70896&edit=1


Thread (5 messages)

« previous php.bugs (#197183) next »