Article View: net.lang.c
Article #9344Re: Help with BDSC float
From: karl
Date: Thu, 18 Sep 1986 23:33
Date: Thu, 18 Sep 1986 23:33
18 lines
1348 bytes
1348 bytes
mit-eddie!moore (Andrew 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));
I don't understand your last sentence. Declare what variable? I presume
you mean that on some compilers, you can write floating-point expressions
without the keyword "float".
>...but in BDS, this is not accepted. How is "float" different in BDS C?
The most likely answer is simply that you have a compiler that doesn't
support floating point. (I presume "double" doesn't work either?) Talk to
your vendor.
Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint
Technical Details
Message-ID:
<86900060@haddock>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!uwvax!husc6!panda!genrad!decvax!ima!haddock!karlReferences:
<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!uwvax!husc6!panda!genrad!decvax!ima!haddock!karl From: karl@haddock Newsgroups: net.lang.c Subject: Re: Help with BDSC float Message-ID: <86900060@haddock> Date: Thu, 18-Sep-86 19:33:00 EDT Article-I.D.: haddock.86900060 Posted: Thu Sep 18 19:33:00 1986 Date-Received: Sat, 20-Sep-86 02:09:35 EDT References: <3211@mit-eddie.MIT.EDU> Lines: 18 Nf-ID: #R:mit-eddie.MIT.EDU:3211:haddock:86900060:000:785 Nf-From: haddock!karl Sep 18 19:33:00 1986