T.R | Title | User | Personal Name | Date | Lines |
---|
1250.1 | | QUARK::LIONEL | Free advice is worth every cent | Fri Apr 04 1997 11:27 | 4 |
| How strange - I can reproduce this on UNIX and with DVF, but on VMS, I have
to use /FLOAT=IEEE to see this behavior...
Steve
|
1250.2 | | WIBBIN::NOYCE | Pulling weeds, pickin' stones | Fri Apr 04 1997 11:58 | 2 |
| That's because only IEEE floating point has a minus zero,
which is the source of this problem.
|
1250.3 | | QUARK::LIONEL | Free advice is worth every cent | Fri Apr 04 1997 12:11 | 7 |
| Ah, yes... Now I see.
Fortran 95 has added language requiring that we be able to distinguish -0 from
+0, if the representation allows it. -(2.6875,0.0) is (-2.6875,-0.0), and
it's reasonable that the CLOG intrinsic return -pi for the imaginary part.
Steve
|
1250.4 | We will probably fix f77 | TLE::EKLUND | Always smiling on the inside! | Fri Apr 04 1997 13:55 | 8 |
| I'm initially taking this as an f77 bug. It looks like we were
not real careful about how we negated the zero. I believe the f90
results to be the "more correct" if one likes to deal with the
wonders of a system with a negative zero available...
Cheers!
Dave Eklund
|
1250.5 | Fixed | TLE::EKLUND | Always smiling on the inside! | Fri Apr 04 1997 18:42 | 6 |
| Fixed. We will negate the zero, hence giving the same result
that f90 gives.
Cheers!
Dave Eklund
|
1250.6 | | QUARK::LIONEL | Free advice is worth every cent | Fri Apr 04 1997 22:38 | 3 |
| Karen, aren't you sorry you asked? :-)
Steve
|
1250.7 | kind of | HPCGRP::DEGREGORY | Karen 223-5801 | Wed Apr 09 1997 15:46 | 9 |
| Well, the interesting thing is that the test suite
from the National Bureau of Standards FAILS when
you use the f90 compiler and passes when you use
the f77 compiler. That's why we thought that what
f77 was doing was the correct thing to do. KAI
discovered this problem as part of their product
testing.
Karen
|
1250.8 | | QUARK::LIONEL | Free advice is worth every cent | Wed Apr 09 1997 15:49 | 3 |
| Which FCVS test is that?
Steve
|