🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9310

Re: Help with BDSC float

#9310
From: Mark Dapoz
Date: Sun, 14 Sep 1986 17:48
15 lines
1377 bytes
In article <3211@mit-eddie.MIT.EDU> moore@mit-eddie.MIT.EDU (Andrew M. Moore) writes:
>   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?

   BDS C 1.5 does NOT support the float data type.  If you want to use floating
point arithmetic then you must use an additional library of functions called
float.c.  It's public domain and found on most RCP/M's.  I've heard rumour that
BDS C (2.0?) has floating point arithmetic and is much more K&R standard.
You'll have to check with the author to see if this is true though.
   Mark Dapoz
Technical Details
Message-ID: <8142@watrose.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!clyde!watmath!watnot!watrose!mdapoz
References: <3170@brl-smoke.ARPA> <3211@mit-eddie.MIT.EDU>

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!caip!clyde!watmath!watnot!watrose!mdapoz
From: mdapoz@watrose.UUCP (Mark Dapoz)
Newsgroups: net.lang.c
Subject: Re: Help with BDSC float
Message-ID: <8142@watrose.UUCP>
Date: Sun, 14-Sep-86 13:48:12 EDT
Article-I.D.: watrose.8142
Posted: Sun Sep 14 13:48:12 1986
Date-Received: Sun, 14-Sep-86 21:54:14 EDT
References: <3170@brl-smoke.ARPA> <3211@mit-eddie.MIT.EDU>
Reply-To: mdapoz@watrose.UUCP (Mark Dapoz)
Organization: U of Waterloo, Ontario
Lines: 15