Re: What should MIN and MAX do when an argument is NaN ?
- From: "James Giles" <jamesgiles@xxxxxxxxxxxxxxxx>
- Date: Tue, 08 Apr 2008 19:08:40 GMT
The proposed new IEEE standard (754r) specifies operations
MIN and MAX (each with two arguments - the high-level
language extension of them to multiple arguments is obvious).
If one argument is NaN, but not the other, the result is required
to be the non-NaN value. Only if both operands are NaN should
a NaN be ther result (and exceptions are raised only then).
This has been extensively discussed in this forum before. I no
longer find either side compelling, so I'm willing to comply with
the requirements of the standard (when and if it's approved).
--
J. Giles
"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
.
- References:
- What should MIN and MAX do when an argument is NaN ?
- From: Clive Page
- What should MIN and MAX do when an argument is NaN ?
- Prev by Date: Re: Rounding off double precision
- Next by Date: Re: Rounding off double precision
- Previous by thread: Re: What should MIN and MAX do when an argument is NaN ?
- Next by thread: Re: What should MIN and MAX do when an argument is NaN ?
- Index(es):
Relevant Pages
|