Was there a negative real zero possibility in early Fortran?



I am revising several programs, (all with at last one similar module,
even if every one differs slightly from every other) and many with
another module, dscussed below, which appears at first to be always
the same code, but isn't so in fact!

The following is a cut-and paste out of one example.
If I had cut another example in the same places, then, where there is
here a
IF(-D) a,b,c
test in one, the other may have
IF(D) c,b,a

Sample (input matrix DATA, real D, integers LCODE and NEWA; output
value real D2)

GOTO (10,20,30,40,50,.etc..),LCODE

C FUNCTION 3
30 IF(-D) 14,99,99
14 D2=ALOG10(D)
GO TO 3
C FUNCTION 4
40 D2=EXP(D)
GO TO 3
C FUNCTION 5
50 IF(-D) 17,7,99
17 IF(D-1.0) 18,19,99
19 D2=3.14159/2.0
GO TO 3
18 D2=ASN(SQRT(D))
GO TO 3
7 D=0.0
GO TO 3
..
3 DATA(I,NEWA)=D2
RETURN
99 (WRITE ERROR MESSAGE)
RETURN


I already have found severe errors; one example is this original code
case corrected by me as above, whose calculated value is lost and
replaced by the previous value of D2!

18 A=SQRT(D)
DATA(I,NEWA)=ASN(A)
GO TO 3

MY QUESTION:
I know this version was written for an IBM 360 in Fortran H (Fortran
IV).
Is there any reason why the programmer is testing (-D) in some cases,
and (D) in others? Is it possible that there was such a thing as
negative real zero?
And this caters for that possibility? Or is the above just an
idiosyncrasy of style?

It worries me that there might be a reason!
.



Relevant Pages

  • Re: How to place focus back after error message window closed?
    ... Well, the reason the code doesn't put the focus back where you want it is that, well, the ... I've even used a tooltip, ... The use of string variables suggests you are using UpdateData to store the values. ... If one of them is empty and user click OK or press Enter, an error message ...
    (microsoft.public.vc.mfc)
  • Re: Saving Documents in Word 2002 using Vista
    ... Depending on the version of Word you are using the error message is similar to what you provided. ... Microsoft Office MVP ... "ozimac" wrote in message ... but now for some reason it won't do it. ...
    (microsoft.public.word.docmanagement)
  • Re: f95 interpreter
    ... >> I was wondering if there is a good reason why an f95 interpreter ... that's sort of two sides of the same reason. ... > as well call it a market). ... > A big piece of the Fortran market is performance oriented. ...
    (comp.lang.fortran)
  • Re: A question on Newtons Method
    ... > Jon Harrop wrote: ... >> archaic theoretical foundation, other languages aren't. ... >> forced to use old code, I see no reason to use Fortran. ... > repository there's every reason to join Fortran literacy club. ...
    (sci.math.num-analysis)
  • Re: Fortran to edit one line of text file
    ... Of course most of those will also read and rewrite the whole ... original code uses list-directed writes. ... there's no reason to expect the same number ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)