#45205 [Opn->Csd]: Floating point syntax

From: Date: Tue, 19 Aug 2008 13:07:49 +0000
Subject: #45205 [Opn->Csd]: Floating point syntax
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1109@lists.php.net to get a copy of this message
ID: 45205 Updated by: kalle@php.net Reported By: chrisvroberts at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: n/a PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2008-06-08 11:20:13] chrisvroberts at gmail dot com Description: ------------ On "http://www.php.net/manual/en/language.types.float.php", the defined syntax for floating point values appears to be incorrect: LNUM [0-9]+ DNUM ([0-9]*[\.]{LNUM}) | ({LNUM}[\.][0-9]*) EXPONENT_DNUM (({LNUM} | {DNUM}) [eE][+-]? {LNUM}) This does not allow negative floating point values. Presumably it should be: LNUM [0-9]+ DNUM ([0-9]*[\.]{LNUM}) | ({LNUM}[\.][0-9]*) EXPONENT_DNUM [+-]?(({LNUM} | {DNUM}) [eE][+-]? {LNUM}) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45205&edit=1

« previous php.doc.bugs (#1109) next »