rfc:precise_float_value
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:precise_float_value [2016/06/05 19:02] – Update voting choice bukka | rfc:precise_float_value [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2015-07-30 | * Date: 2015-07-30 | ||
* Author: Yasuo Ohgaki < | * Author: Yasuo Ohgaki < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 10: | Line 10: | ||
This RFC is based on the discussion about displaying float values in json_encode and proposes more precise float value handling overall. | This RFC is based on the discussion about displaying float values in json_encode and proposes more precise float value handling overall. | ||
- | JSON is used to exchange data between systems. Although [[https:// | + | JSON is used to exchange data between systems. Although [[https:// |
- | Currently, json_encode() uses EG(precision) which is set to 14. That means that 14 digits | + | Currently json_encode() uses EG(precision) which is set to 14. That means that 14 digits |
<code php> | <code php> | ||
Line 62: | Line 62: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | This RFC proposes to introduce EG(precision)=-1 and PG(serialize_precision)=-1 that uses zend_dtoa()' | + | This RFC proposes to introduce |
The RFC also proposes changing ini for JSON precision to PG(serialize_precision). | The RFC also proposes changing ini for JSON precision to PG(serialize_precision). | ||
Line 178: | Line 178: | ||
- | ===== Proposed | + | ===== Voting ===== |
- | Requires a 2/3 majority | + | Requires a 2/3 majority |
- | There will be two votings | + | The both votes are straight Yes/No votes. |
- | * whether to introduce | + | <doodle title=" |
- | * should | + | |
+ | * No | ||
+ | </ | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | The votes started on 2016-06-12 at 19:00 UTC and ended on 2016-06-19 at 19:00 UTC. | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
Line 193: | Line 202: | ||
* https:// | * https:// | ||
- | Note that the PR is currently | + | Note that the PR is currently |
===== Implementation ===== | ===== Implementation ===== | ||
+ | |||
+ | Merged into php-src for PHP 7.1: https:// | ||
+ | |||
After the project is implemented, | After the project is implemented, | ||
- | - the version(s) it was merged to | ||
- | - a link to the git commit(s) | ||
- a link to the PHP manual entry for the feature | - a link to the PHP manual entry for the feature | ||
Line 208: | Line 218: | ||
===== Rejected Features ===== | ===== Rejected Features ===== | ||
- | Keep this updated with features that were discussed on the mail lists. | + | |
+ | None | ||
rfc/precise_float_value.1465153377.txt.gz · Last modified: 2017/09/22 13:28 (external edit)