Input format and NaNs
- From: Bruce Bowler <bbowler@xxxxxxxxxxx>
- Date: Mon, 30 Jan 2006 11:36:29 -0500
I have a datafile that I'm trying to read that has NaNs in it, on
occasion, where the result of a calculation in another language was a NaN.
Where there aren't NaNs there are floating point numbers.
Is there a format specifier I can use that won't puke on NaN in the input
stream, or do I have to read things into a string, check for NaN and then
using an internal read if there isn't a NaN or preprocess the file with
something else to replace the NaNs with a "known bad value" that FORTRAN
can read on it's own?
Using Salford f95 compiler, if it makes a difference.
TIA,
Bruce
--
+-------------------+---------------------------------------------------+
Bruce Bowler | A person is never happy except at the price of some
1.207.633.9600 | ignorance. - Anatole France
bbowler@xxxxxxxxxxx |
+-------------------+---------------------------------------------------+
.
- Follow-Ups:
- RE: Input format and NaNs
- From: meek
- Re: Input format and NaNs
- From: Herman D . Knoble
- Re: Input format and NaNs
- From: Richard E Maine
- RE: Input format and NaNs
- Prev by Date: Re: fortran
- Next by Date: Re: How to detect NULL input?
- Previous by thread: Open Watcom Fortran compiler help needed
- Next by thread: Re: Input format and NaNs
- Index(es):
Relevant Pages
|
|