This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] commited, patch for PR 24685


On Feb 15, 2006, at 1:31 AM, Tobias Schlüter wrote:

Jakub Jelinek wrote:
Now, is Fortran huge() supposed to be infinity, or largest finite number
of the chosen kind?

The latter.

Neither. :-)


Though the latter is closer and is sometimes right. It is supposed to be the largest *MODEL* number. It is possible for there to be finite representable numbers that are larger than huge(). I don't think that happens with IEEE, though I didn't sit down and check. It can happen with some floatting point formats, though. One should not assume that it is inherently impossible for a finite number to be greater than huge.

--
Richard Maine                |  Good judgment comes from experience;
Richard.Maine@nasa.gov       |  experience comes from bad judgment.
                            |        -- Mark Twain


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]