Re: Why float is called as 'float', not 'real'?
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Mon, 26 Mar 2007 17:28:23 -0800
Brooks Moses wrote:
(snip on gfortran and multiple precision libraries)
FWIW, these are used for evaluating initialization expressions, since gfortran supports cross-compiling, and the host hardware may not have as much precision available as the target hardware has. For simplicity (and to make it more likely that bugs will be noticed), initialization expressions are evaluated with a GMP/MPFR-based representation using the same code regardless of whether one's actually doing a cross-compile or not.
So it only does a little more than double precision, and then rounds
as appropriate?
However, the compiled code produced by gfortran doesn't require GMP or MPFR in order to run.
So the old problem of compile time and run time evaluation being
different is likely to occur?
-- glen
.
- Follow-Ups:
- Re: Why float is called as 'float', not 'real'?
- From: Janne Blomqvist
- Re: Why float is called as 'float', not 'real'?
- References:
- Why float is called as 'float', not 'real'?
- From: DirtyHarry
- Re: Why float is called as 'float', not 'real'?
- From: Lane Straatman
- Re: Why float is called as 'float', not 'real'?
- From: blmblm
- Re: Why float is called as 'float', not 'real'?
- From: Ron Shepard
- Re: Why float is called as 'float', not 'real'?
- From: blmblm
- Re: Why float is called as 'float', not 'real'?
- From: glen herrmannsfeldt
- Re: Why float is called as 'float', not 'real'?
- From: Brooks Moses
- Why float is called as 'float', not 'real'?
- Prev by Date: Re: Read a .BMP into Fortran?
- Next by Date: Re: Why float is called as 'float', not 'real'?
- Previous by thread: Re: Why float is called as 'float', not 'real'?
- Next by thread: Re: Why float is called as 'float', not 'real'?
- Index(es):