🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2565

Re: Is 300F a valid float constant?

#2565
From: Walter Murray
Date: Tue, 09 Apr 1996 22:42
29 lines
1537 bytes
rdwells@mmm.com wrote:
: 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:

[snip]

: Am I reading the syntax wrong?  Should I take this to
: comp.std.c where someone may actually care (:-)?

You are the victim of a typo in the ANSI version of the
standard.  (You'd think, as much as we have to pay to get
an ANSI standard, that the quality of the reproduction would
be better!)  In the second form of the syntax for a
fractional-constant in 6.1.3.1, digit-sequence should be
followed by a period.  Then the comment that you quoted
makes sense.

If you have doubts, check the syntax summary in Annex B
(Subclause B.1.4), which does not have the typo.

Perhaps you are using Schildt's annotated version of the
standard.  If so, don't blame this on him.  This error
occurs in the ANSI document itself.  I'd like to know
whether anyone has reported it through official channels.

Walter Murray
Hewlett-Packard
Support Technology Lab
Technical Details
Message-ID: <4kep46$8gj@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4jv7es$d2i@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: walterm@hprctbs3.rose.hp.com (Walter Murray)
Newsgroups: comp.lang.c.moderated
Subject: Re: Is 300F a valid float constant?
Date: 9 Apr 1996 17:42:14 -0500
Organization: Hewlett Packard Roseville Site
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4kep46$8gj@solutions.solon.com>
References: <4jv7es$d2i@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Newsreader: TIN [version 1.2 PL2]