|
|
 |
| found 125 articles for 0.032 sec |
  |
Group: comp.lang.fortran · Group Profile · Search for max NaN 0 should be NaN in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Sep 8, 2006 09:32
... noes not define any operations called max and min. It has MinNum, MaxNum... would not call them 'min' or 'max'... For an extra complication (for comp.lang.fortran), what should MAX1(NaN,0) return? Note that C, or at least C89, doesn't have max and min, but they are commonly ..., and likely not symmetric. #define MAX(a,b) ((a>b)?(a):(b)) I don't expect MAX(NaN,0.) to be the same as...
|
| Show full article (0.68Kb) · Show article thread |
Group: comp.lang.fortran · Group Profile · Search for max NaN 0 should be NaN in comp.lang.fortran
Author: Nick Maclaren
Date: Sep 8, 2006 02:19
... the conflation of two |> meanings for NaN, so it wouldn't be at ...no* definite right answer for max(NaN,0). There IS a definite right answer, using the meaning of NaN that is implied by IEEE 754,...answer, you need a meaning of NaNs that is not currently in IEEE .... Firstly, IEEE 754 requires max(SNaN,0) to raise the invalid exception,... that would imply that QNaN+0.0 = 0.0 and, thirdly, the only...
|
| Show full article (0.96Kb) · Show article thread |
|
 |
|
1 ·
2 ·
3 ·
4 ·
5 ·
6 ·
7 ·
8 ·
9 ·
next |
|
|