Re: compilation problem with module function interface definition
- From: "Gerald F. Thomas" <gfthomas@xxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 00:19:50 -0400
"James Giles" <jamesgiles@xxxxxxxxxxxxxxxx> wrote in message
news:t0ece.149819$cg1.131925@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> glen herrmannsfeldt wrote:
> > Richard E Maine wrote:
> ...
> >> The simplest and most problematic case is the precision of real
> >> literal constants. If you have something like
> >
> >> x = 1.23
> >
> >> then the 1.23 is single precision, because that's the form of a
> >> single precision constant. It does *NOT* matter what the precision
> >> of x is; the single precision constant is defined without regard
> >> to context. The constant 1.23 is always single precision
> >> regardless of where it appears. It is fairly common for people to
> >> expect 1.23 to be accurate to double precision if x is double
> >> precision.
> >
> > The C answer to this was to always make constants double. ANSI C
> > added the ability to specify single precision with a suffix f.
> > Also, C normally promotes function arguments to double before
> > calls, unless a prototype declaring the argument as float is in
> > scope.
>
> My own preprocessor treats KINDless literals as type RATIONAL.
Whoa!, so you've just rediscovered fire.
Hurry along now Giles, you're late again!
--
You're Welcome,
Gerry T.
______
"The best lesson life has taught me is that the idiots in many cases are
right." -- Churchill.
.
- References:
- compilation problem with module function interface definition
- From: Phony Account
- Re: compilation problem with module function interface definition
- From: Richard E Maine
- Re: compilation problem with module function interface definition
- From: Phony Account
- Re: compilation problem with module function interface definition
- From: Richard E Maine
- Re: compilation problem with module function interface definition
- From: glen herrmannsfeldt
- Re: compilation problem with module function interface definition
- From: James Giles
- compilation problem with module function interface definition
- Prev by Date: Re: compilation problem with module function interface definition
- Next by Date: Re: COMPUTATIONAL FLUID DYNAMICS - Help with SIMPLE algorithm implementation
- Previous by thread: Re: compilation problem with module function interface definition
- Next by thread: Re: compilation problem with module function interface definition
- Index(es):
Relevant Pages
|