[PATCH] Fix hpux10 string to real conversion defficiences
John David Anglin
dave@hiauly1.hia.nrc.ca
Sun Apr 13 17:52:00 GMT 2008
> I assume one objective is to enable inf and nan in read_f? So, that is
> the next step?
>
> Checking the F2003 standard we can have an optional () or (some text).
>
> (1) an optional sign, followed by the string âÂÂINFâ or the string
> âÂÂINFINITYâ or
> (2) an optional sign, followed by the string âÂÂNANâÂÂ, optionally followed
> by zero or more alphanumeric characters enclosed in parentheses.
>
> Keeping with the way we have the code factored now, I think the
> interpreting of the inf and nan should be done in read_f and leave
> convert_real to the numbers only.
I'll take a look at this, but I doubt I will be able to work on it
until early May. For the optional string in parenthesis, it could
be ignored for targets that have broken strtod implementations.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
More information about the Fortran
mailing list