Article View: comp.lang.c.moderated
Article #2491Is 300F a valid float constant?
From: rdwells
Date: Thu, 04 Apr 1996 01:08
Date: Thu, 04 Apr 1996 01:08
19 lines
1043 bytes
1043 bytes
VC++ rejects 300F as a float constant, but my reading of
the syntax part of section 6.1.3.1 of the standard indicates
that it should be valid:
300 is a valid digit-sequence
a digit-sequence alone is a valid fractional-constant
F is a valid floating-suffix
a fractional-constant followed by a floating-suffix is
a valid floating-constant
However, the description part of section 6.1.3.1 says:
"...either the period or the exponent part shall be
present"
which would indicate to me that 300F is not valid.
Am I reading the syntax wrong? Should I take this to
comp.std.c where someone may actually care (:-)?
Technical Details
Message-ID:
<4jv7es$d2i@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: rdwells@mmm.com Newsgroups: comp.lang.c.moderated Subject: Is 300F a valid float constant? Date: 3 Apr 1996 19:08:44 -0600 Organization: 3M Company Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4jv7es$d2i@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com X-Mailer: Mozilla 2.0 (WinNT; I)