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!

negative number problem

Status
Not open for further replies.

1lyn1

Programmer
Feb 9, 2010
1
NZ
I am having trouble reading in a dataset that contains negative numbers. I get the error F6103 - invalid real.

This data can be read in by Minitab, Excel and other packages and there are no problems - all the negatives are recognised. If I convert all the data to positive, then I have no problems in reading in the data.

The program I have written uses double precision.
I am reading the data in
as
READ(8,*) (X(IR, I, JP(J)), J=1, NATT)

and I have loops over IR and I.

Any suggestions would be gratefully received.

Thanks

 
Are you sure it is the negative numbers?

Try

READ(8,*, ERR=100)(X(IR,I,JP(J)), J=1,NATT)
...
100 PRINT *, IR, I, J, JP(J)

Have a look at the data at the point where it stopped.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top