Doc #79302 [Opn->Ver]: Support for underscores in numbers not documented in "floating point numbers"
| From: | cmb@php.net | Date: | Mon, 24 Feb 2020 16:24:37 +0000 |
| Subject: | Doc #79302 [Opn->Ver]: Support for underscores in numbers not documented in "floating point numbers" | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17330@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79302&edit=1
ID: 79302
Updated by: cmb@php.net
Reported by: tandre@php.net
Summary: Support for underscores in numbers not documented in
"floating point numbers"
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Documentation problem
PHP Version: 7.4.3
Block user comment: N
Private report: N
New Comment:
Seems to be missing from the integer docs[1] as well.
[1] <https://www.php.net/manual/en/language.types.integer.php>
Previous Comments:
------------------------------------------------------------------------
[2020-02-24 16:18:59] tandre@php.net
Description:
------------
https://www.php.net/manual/en/language.types.float.php
does not document that underscores (numeric literal separator) are allowed since php 7.4.
php > echo 1_2.3_4;
12.34
https://wiki.php.net/rfc/numeric_literal_separator
> The only restriction is that each underscore in a numeric literal must be directly between two
> digits.
Expected result:
----------------
The CFG in https://www.php.net/manual/en/language.types.float.php
should be updated to document the syntax in php 7.4, and note that the change was made in php 7.4
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79302&edit=1