Bug->Req #70896 [Opn]: Invalid result with decimals

From: Date: Thu, 12 Nov 2015 00:05:20 +0000
Subject: Bug->Req #70896 [Opn]: Invalid result with decimals
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197181@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 Updated by: requinix@php.net Reported by: xavier at pandawan-technology dot com Summary: Invalid result with decimals Status: Open -Type: Bug +Type: Feature/Change Request Package: GNU MP related Operating System: Any PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#197181) next »