Re: Integer Coersion
- From: "PJH" <abc@xxxxxxxxxxx>
- Date: Wed, 7 Feb 2007 16:06:55 -0000
Gordon Sande wrote
On 2007-02-07 09:38:24 -0400, mecej4 <mecej4@xxxxxxxxxxxxx> said:
It has been repeatedly observed in the past that byte size is not a unique
specification of a floating point format. There can be an exchange between
the lengths of the exponent and significand fields.
There have been major vendors with popular computers lines for which this
was true. Consider the various VAXen.
I think this is confusing a number of separate (but related) issues, none of
which are covered much by the standard.
1) Storage bit length for a type kind
2) Bits per storage byte
3) Data representation within the bitfield of a type kind
Fortran type kind parameters will not guarantee any of these and it is very
difficult at runtime to check what these values actually are - hence all the
messing around with the Transfer function to maybe, if you are lucky, find
out how many bits there are in a non-default floating point type kind. The
only useful standard function we have is bit_size, which only works on
integers.
It is difficult to believe that in 2007 we are still messing around in the
dark like this. All we need are a few simple, standard intrinsic inquiry
functions (or modules) to either tell us what is going on in the compiler or
to tell us that the compiler is in a little world of its own where the
question doesn't make any sense.
Paul Holden
.
- Follow-Ups:
- Re: Integer Coersion
- From: Gordon Sande
- Re: Integer Coersion
- References:
- Integer Coersion
- From: PJH
- Re: Integer Coersion
- From: David Frank
- Re: Integer Coersion
- From: PJH
- Re: Integer Coersion
- From: David Frank
- Re: Integer Coersion
- From: PJH
- Re: Integer Coersion
- From: mecej4
- Re: Integer Coersion
- From: Gordon Sande
- Integer Coersion
- Prev by Date: Re: finding available kind values, precisions and exponent ranges
- Next by Date: Re: Integer Coersion
- Previous by thread: Re: Integer Coersion
- Next by thread: Re: Integer Coersion
- Index(es):
Relevant Pages
|