🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4897

Re: Valid floating-point constants ?

#4897
From: Larry Jones
Date: Fri, 15 Mar 1996 16:01
16 lines
1129 bytes
In article <4ibmd9$aq5@gate.seicom.net>, tydeman@tybor.com   (Fred Tydeman) writes:
> I have run across some tools and compilers that do not like:
> 
>   08.5    09.   09e0
> 
> They complain that those are invalid octal integers.  I claim
> that they are valid decimal floating-point constants. Who is right?

You are.  Each of those should be parsed as a single pp-number
preprocessing token which has the form of a floating-constant, not an
octal-constant.  There is nothing in the syntax or semantics that
disallows leading zeros in floating-constants.
----
Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
larry.jones@sdrc.com
ANY idiot can be famous.  I figure I'm more the LEGENDARY type! -- Calvin
Technical Details
Message-ID: <4ic49f$cq8@info1.sdrc.com>
Path: arc1-ca.pugleaf.net!sdrc.com!thor!scjones
References: <4ibmd9$aq5@gate.seicom.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sdrc.com!thor!scjones
From: larry.jones@sdrc.com (Larry Jones)
Newsgroups: comp.std.c
Subject: Re: Valid floating-point constants ?
Date: 15 Mar 1996 16:01:51 GMT
Organization: SDRC Engineering Services
Distribution: world
Message-ID: <4ic49f$cq8@info1.sdrc.com>
References: <4ibmd9$aq5@gate.seicom.net>
NNTP-Posting-Host: thor.sdrc.com
Originator: scjones@thor