Req #73912 [Sus->Wfx]: provides "long double"

From: Date: Wed, 11 Jan 2017 20:19:20 +0000
Subject: Req #73912 [Sus->Wfx]: provides "long double"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206539@lists.php.net to get a copy of this message
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


Thread (1 message)

  • bwoebi@php.net
  • Unknown Message
    • bwoebi@php.net
« previous php.bugs (#206539) next »