🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2480

More on Small floating point constants are doubles?

#2480
From: Paul Hudson
Date: Tue, 28 Mar 1989 09:46
15 lines
1149 bytes
Dave Hanson points out that I can get float constants rather than doubles by appending an "F".

I should have explained further ... ;-). I'm in the unfortunate position of having to keep
my code in a state where it can be compiled by ANSI and non-ANSI compilers. Adding
#ifdef __STDC round prototypes etc is bearable, but conditionally compiling a "f" after
all the floating point constants would get silly. Thus I'd like that option.

Paul Hudson 

Snail mail: Monotype ADG	Email:	...!ukc!acorn!moncam!paul
	    Science Park,		paul@moncam.co.uk
	    Milton Road,	"Sun Microsysytems:
	    Cambridge,		 The Company is Arrogant (TM)"
	    CB4 4FQ
Technical Details
Message-ID: <8903280946.AA14743@marvin.moncam.uucp>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UUNET.UU.NET!mcvax!moncam!paul
References: <15894@princeton.Princeton.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UUNET.UU.NET!mcvax!moncam!paul
From: mcvax!moncam!paul@UUNET.UU.NET (Paul Hudson)
Newsgroups: gnu.gcc.bug
Subject: More on Small floating point constants are doubles?
Message-ID: <8903280946.AA14743@marvin.moncam.uucp>
Date: 28 Mar 89 09:46:51 GMT
References: <15894@princeton.Princeton.EDU>
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 15