Edit report at https://bugs.php.net/bug.php?id=73912&edit=1
ID: 73912
Updated by: bwoebi@php.net
Reported by: winbill at hotmail dot com
Summary: provides "long double"
-Status: Suspended
+Status: Wont fix
Type: Feature/Change Request
Package: *General Issues
Operating System: Linux
PHP Version: Next Major Version
Block user comment: N
Private report: N
New Comment:
This isn't necessarily the kind of change which would require a RFCâ¦
I'm rather going to close this as Won't fix (at least taking the current engine into
account). It'd basically have the consequence that we'd end up needing 24 bytes for zvals
instead of 16, just for this little rarely needed feature.
That's in real world an increase of at least 15% in memory.
Which is not sustainable. Instead, better propose a custom object which allows manipulation of long
doubles. (like GMP, where you can also use mathematical operators etc.)
Previous Comments:
------------------------------------------------------------------------
[2017-01-11 03:20:17] requinix@php.net
A change like this would require an RFC. https://wiki.php.net/rfc/howto
In the meantime you can use bc. http://php.net/bc
------------------------------------------------------------------------
[2017-01-11 02:56:50] winbill at hotmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.floatval
---
I need to deal with precision higher than double.
C/C++ provides long double, with gcc on linux, most negative value of a long double is
3.362103E-4932, and max value of a long double is 1.189731E+4932.
I hope PHP provides "long double" in the coming version.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73912&edit=1