Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scale-of-eight 1

Status
Not open for further replies.

alleyor

Programmer
Aug 2, 2009
13
CN
INTERGER H

IF (H(J,2).GT.0.AND.H(J,2).LT.77B) GO TO 550

This sentence can't be compilered in ivf9.

"IF (H(J,2).GT.0.AND.H(J,2).LT.O'77') GO TO 550" (1)

OR

"IF (H(J,2).GT.0.AND.H(J,2).LT.63) GO TO 550", (2)

WHICH IS CORRECT? OR OTHER?

AND THIS ONE.

IF ((NN(I) .AND.77777700000000000000B).EQ.3LCOM) GO TO 190

IF it is used in place of "IF ((NN(I) .AND.O'77777700000000000000').EQ.3LCOM) GO TO 190",
THIS WILL A CLEW:" Error: This octal constant is too large in this context. [O'77777700000000000000']"

THANKS!



 
B is normally used for binary. O prefix is used for octal. Both
Code:
IF (H(J,2).GT.0.AND.H(J,2).LT.O'77') GO TO 550

IF (H(J,2).GT.0.AND.H(J,2).LT.63) GO TO 550
are correct: one has 77 in octal, the other in decimal.

I'm using IVF7, I don't get any erros with the octal constant but I get a problem with 3LCOM, which is an illegally named variable.
Code:
IF ((NN(I) .AND.O'77777700000000000000').EQ.3LCOM) GO TO 190
You have a 60 bit word so presumably NN(I) is a 64 bit integer (INTEGER*8).
 
IF ALL THE WOEDS ARE 32BITS,HOW DO I replace it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top