Qnan
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 10 articles for 0.000 sec
Re: Fortran / IEEE 754: MAXVAL and INF, NaN     

Group: comp.lang.fortran · Group Profile · Search for Qnan in comp.lang.fortran
Author: Terje Mathisen
Date: Oct 20, 2007 10:31

... a value in the second operand [source] is an SNaN, that SNaN is forwarded unchaged to the destination (that is, a QNaN version of the SNaN is not returned). If only one value is a NaN (SNaN or QNaN) for this instruction, the second operand (source operand), either a NaN or a valid floating-point value, is written to the...
Show full article (2.07Kb) · Show article thread
Re: Fortran / IEEE 754: MAXVAL and INF, NaN     

Group: comp.lang.fortran · Group Profile · Search for Qnan in comp.lang.fortran
Author: Chip Coldwell
Date: Oct 19, 2007 15:23

... a value in the second operand [source] is an SNaN, that SNaN is forwarded unchaged to the destination (that is, a QNaN version of the SNaN is not returned). If only one value is a NaN (SNaN or QNaN) for this instruction, the second operand (source operand), either a NaN or a valid floating-point value, is written to ...
Show full article (2.09Kb) · Show article thread
Re: valid code or not     

Group: comp.lang.fortran · Group Profile · Search for Qnan in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Sep 25, 2007 14:10

...Value = REAL(Z'FFFFFFFF') RETURN END With the assumption of IEEE standard floating point those should work. (I am not so sure what happens with BOZ constants on machines with a different bit order for integer and floating point data.) Others have indicated ways to generate qNaN with constant expressions. I don't know if you can generate sNaN that way. -- glen
Show full article (1.46Kb) · Show article thread
Re: Q Re using gfortran instead of g77     

Group: comp.lang.fortran · Group Profile · Search for Qnan in comp.lang.fortran
Author: Tobias Burnus
Date: Sep 21, 2007 03:42

...? As I recall, yes. There's also a plan to eventually allow initializing real variables to snan or qnan, but I don't think that's going to make it in for 4.3. It allows other values including qNaN, but unfortunately not yet sNaN. Available options: -finit-local-zero -finit-integer=n -finit-real=<zero|inf|-inf|nan>...
Show full article (1.76Kb) · Show article thread
Re: Q Re using gfortran instead of g77     

Group: comp.lang.fortran · Group Profile · Search for Qnan in comp.lang.fortran
Author: Craig Powers
Date: Sep 19, 2007 12:32

...s included in the source tree yet. Does it allow one to initialize to other than zero? As I recall, yes. There's also a plan to eventually allow initializing real variables to snan or qnan, but I don't think that's going to make it in for 4.3. To make it easier to find (otherwise) uninitialized variables it is convenient to initialize them to an unlikely value. One ...
Show full article (1.16Kb) · Show article thread
Re: [9fans] Arithmetic on Plan 9     

Group: comp.os.plan9 · Group Profile · Search for Qnan in comp.os.plan9
Author: tlaronde
Date: Jul 25, 2007 15:55

... software to create/insert NaNs, whether sNaN or qNAN. And furthermore (В§4.8.3.6): ------quote ...7. When an SNaN is converted to a QNaN, the conversion is handled by setting the most...an SNaN source operand converted to a QNaN or the QNaN floating- point indefinite value. ------endquote...floating-point invalid-operation, even in case of QNaN, if I understand correctly, was indeed required to...
Show full article (3.14Kb) · Show article thread
Re: [9fans] NaN(2)     

Group: comp.os.plan9 · Group Profile · Search for Qnan in comp.os.plan9
Author: Joel C. Salomon
Date: Feb 20, 2007 20:37

On 2/20/07, erik quanstrom <quanstro@coraid.com> wrote: after a bit of actual thought, i think that NaN is supposed to generate a note. if you do catch the note, the program should work fine. This is distinct from sNaN/qNaN, right? --Joel
Show full article (0.25Kb) · Show article thread
Re: max(NaN,0) should be NaN     

Group: comp.lang.fortran · Group Profile · Search for Qnan in comp.lang.fortran
Author: Michel Hack
Date: Sep 8, 2006 10:41

... default) for "missing" would have been quite valuable. I'm just afraid of bringing it up so late in the game... Interestingly IBM's "High Level Assembler" does support defining two kinds of quiet NaN in floating-point constants: (NAN) implies machine default (double 0x7ff80000...) and (QNAN) implies 0x7ffc0000... but I don't know of any software that exploits this. Michel.
Show full article (1.25Kb) · Show article thread
Re: max(NaN,0) should be NaN     

Group: comp.lang.fortran · Group Profile · Search for Qnan in comp.lang.fortran
Author: Nick Maclaren
Date: Sep 8, 2006 02:19

... to this thread, but if I may be |> indulged a little, what is wrong with... |> |> max(QNaN,0) = 0 |> max(SNaN,0) = SNaN BAD idea. Sorry. Firstly, IEEE 754 requires max(SNaN,0) to raise the invalid exception, secondly, that would imply that QNaN+0.0 = 0.0 and, thirdly, the only languages that 'support' IEEE 754 use only QNaNs. Regards, Nick Maclaren.
Show full article (0.96Kb) · Show article thread
Re: max(NaN,0) should be NaN     

Group: comp.lang.fortran · Group Profile · Search for Qnan in comp.lang.fortran
Author: Ken Hagan
Date: Sep 8, 2006 01:55

... Nick's point, the problem is the conflation of two meanings for NaN, so it wouldn't be at all surprising to me if there were *no* definite right answer for max(NaN,0). Now, I probably have less experience and knowledge in this area than anyone who has so far contributed to this thread, but if I may be indulged a little, what is wrong with... max(QNaN,0) = 0 max(SNaN,0) = SNaN
Show full article (0.63Kb) · Show article thread