Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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