🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9300

Help with BDSC float

#9300
From: Andrew M. Moore
Date: Sat, 13 Sep 1986 14:02
15 lines
959 bytes


   My BDS C compiler doesn't want to accept  %6.3f  (example) in printf's.
Nor does it accept "float" as a data type declaration.  On some compilers,
I don't have to declare a variable as "float" before using it:

	printf("Float: %6.3f", (5.0/4.0));

...but in BDS, this is not accepted.  How is "float" different in BDS C?

Andrew Moore
arpa MOORE%MIT-EECS@MIT-MC.ARPA
uucp ...mit-eddie!moore
  us Box 121, North Quincy, MA  02171
Technical Details
Message-ID: <3211@mit-eddie.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!panda!genrad!mit-eddie!moore
References: <3170@brl-smoke.ARPA>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!panda!genrad!mit-eddie!moore
From: moore@mit-eddie.MIT.EDU (Andrew M. Moore)
Newsgroups: net.lang.c
Subject: Help with BDSC float
Message-ID: <3211@mit-eddie.MIT.EDU>
Date: Sat, 13-Sep-86 10:02:08 EDT
Article-I.D.: mit-eddi.3211
Posted: Sat Sep 13 10:02:08 1986
Date-Received: Sat, 13-Sep-86 21:15:57 EDT
References: <3170@brl-smoke.ARPA>
Organization: M.I.T. EE/CS Computer Facility, Cambridge MA
Lines: 15