Re: compilation problem with module function interface definition



glen herrmannsfeldt wrote:
.....
> It does complicate some algorithms slightly, though.
....
> But consider that you might want to print out the number.
> With seven decimal digits you can print out all seven with the
> relative spacing one in the last digit. Now consider printing
> the binary number in decimal. The unfair spacing is always
> there for decimal formatted output. (Though with the traditional
> format with a leading zero (without a P descriptor) it is even
> one digit worse.)

But consider that most programs only output values after quite
a number of computational steps. Those will be more complicated
to get right in decimal than binary, and more complex to analyze.
You should pick the form of floating point that best suits the majority
of your needs, rather than just trying to satisfy one usually trivial
issue.

Getting back to the aspect of this issue that led to this discussion:
The value I see in having a decimal float KIND is that literals could
default to that KIND without inherent loss of precision. Given the
example of this thread:

real(myKind) :: x, y
...
x = 1.23

Here, if the literal is of a type of KIND that loses no precision is
and of itself, then it doesn't matter what KIND I change myKind to
select, I will get an approximation of appropriate precision to
be stored in X. The problem arises in mixed KIND arithmetic:

x = 1.23 * y

Here, if the KIND of the product is required to be the same as the
KIND of the literal I think it's not the best choice for the majority
of cases.

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare


.



Relevant Pages

  • Re: adding hyperlinks to a table....
    ... Based on what will I know what to rename ... Not that I'm looking to complicate things ... togeter to form a 9 digit number. ... people writing documents would name them, to a number that the database ...
    (microsoft.public.access.forms)
  • Re: equivalence with dummy arguments
    ... And, under my proposed extensions: ... another concept to complicate the ... already have of existing features of the language. ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: moving (up/down) head
    ... Me, I use Redhat at work, 64-bit SMP Ubuntu at home. ... 'playing-pros' area, and the precision, is already quite satisfying, yet have ... Would you think the good playing prof, did/do 'complicate' things, ...
    (rec.sport.golf)