From: Phil Carmody <fatphil@altavista.com>
To: axp-list@redhat.com
Subject: Re: strange (incorrect) arithmetic behaviour
Date: 31 Oct 2000 14:36:23 -0800 [thread overview]
Message-ID: <20001031223623.19927.cpmta@c012.sfo.cp.net> (raw)
On Tue, 31 October 2000, Stefan Schroepfer wrote:
> Hi,
>
> the f format specifier is for double arguments,
> so try
>
> printf( "%f\n%f\n%f\n", (double)a, (double)b, (double)c);
>
> instead.
They were double arguments already, as this is C. In C++ there is no such automatic promotion, and when you want to pass a float, you simply pass a float.
Phil
Judge Lewis Kaplan's idiocy finally proved August 17, 2000:
"Defendants, on the other hand, are adherents of a movement
that believes that information should be available without
charge to anyone clever enough to break into the computer
systems or data storage media in which it is located."
_______________________________________________________________________
Free Unlimited Internet Access! Try it now!
http://www.zdnet.com/downloads/altavista/index.html
_______________________________________________________________________
next reply other threads:[~2000-10-31 22:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-31 22:36 Phil Carmody [this message]
2000-11-02 13:35 ` strange (incorrect) arithmetic behaviour Stefan Schroepfer
-- strict thread matches above, loose matches on Subject: below --
2000-10-31 10:17 Richard Polton
2000-10-31 12:45 ` Uncle George
2000-10-31 13:42 ` Richard Polton
2000-10-31 14:37 ` Stefan Schroepfer
2000-10-31 15:38 ` Michal Jaegermann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox