Click here to Skip to main content
15,901,205 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: What the NaN? Pin
Richard MacCutchan4-Oct-16 3:42
mveRichard MacCutchan4-Oct-16 3:42 
GeneralRe: What the NaN? Pin
Richard MacCutchan4-Oct-16 6:13
mveRichard MacCutchan4-Oct-16 6:13 
GeneralRe: What the NaN? Pin
Sander Rossel4-Oct-16 8:02
professionalSander Rossel4-Oct-16 8:02 
GeneralRe: What the NaN? Pin
Fly Gheorghe4-Oct-16 5:52
Fly Gheorghe4-Oct-16 5:52 
GeneralRe: What the NaN? Pin
Richard MacCutchan4-Oct-16 6:13
mveRichard MacCutchan4-Oct-16 6:13 
GeneralRe: What the NaN? Pin
Manfred Rudolf Bihy3-Oct-16 8:19
professionalManfred Rudolf Bihy3-Oct-16 8:19 
GeneralRe: What the NaN? Pin
Sander Rossel3-Oct-16 8:30
professionalSander Rossel3-Oct-16 8:30 
GeneralRe: What the NaN? Pin
Gary R. Wheeler2-Oct-16 11:42
Gary R. Wheeler2-Oct-16 11:42 
To my mind, the only reasonable operations with NaN are assigning an lvalue to NaN and comparing a value to NaN for equality and inequality. Any of the arithmetic operators ought to yield NaN (or throw an exception).

Come to think of it, the IEEE must have a formal document that describes all of this behavior. Pardon me while I JFGI... Ahh; typical. The formal document is only available to IEEE members who know the official circle jerk handshake. NaN - Wikipedia, the free encyclopedia[^] is a quick article that describes background and informally NaN's usage.

This article: IEEE Standard 754 Floating-Point[^] also has some discussion on NaN behavior.
Software Zen: delete this;

GeneralRe: What the NaN? Pin
Richard MacCutchan2-Oct-16 22:39
mveRichard MacCutchan2-Oct-16 22:39 
GeneralRe: What the NaN? Pin
Slacker0073-Oct-16 1:31
professionalSlacker0073-Oct-16 1:31 
GeneralRe: What the NaN? Pin
den2k882-Oct-16 20:53
professionalden2k882-Oct-16 20:53 
GeneralRe: What the NaN? Pin
StatementTerminator4-Oct-16 6:01
StatementTerminator4-Oct-16 6:01 
GeneralRe: What the NaN? Pin
BillWoodruff2-Oct-16 6:25
professionalBillWoodruff2-Oct-16 6:25 
GeneralRe: What the NaN? Pin
Midi_Mick2-Oct-16 7:41
professionalMidi_Mick2-Oct-16 7:41 
GeneralRe: What the NaN? Pin
Sander Rossel2-Oct-16 8:47
professionalSander Rossel2-Oct-16 8:47 
GeneralRe: What the NaN? Pin
Mladen Janković2-Oct-16 10:11
Mladen Janković2-Oct-16 10:11 
GeneralRe: What the NaN? Pin
BillWoodruff2-Oct-16 11:39
professionalBillWoodruff2-Oct-16 11:39 
GeneralRe: What the NaN? Pin
Nagy Vilmos2-Oct-16 7:10
professionalNagy Vilmos2-Oct-16 7:10 
GeneralRe: What the NaN? Pin
Cornelius Henning2-Oct-16 7:36
professionalCornelius Henning2-Oct-16 7:36 
GeneralRe: What the NaN? Pin
Sander Rossel2-Oct-16 8:49
professionalSander Rossel2-Oct-16 8:49 
GeneralRe: What the NaN? Pin
Jochen Arndt2-Oct-16 10:22
professionalJochen Arndt2-Oct-16 10:22 
GeneralRe: What the NaN? Pin
Sander Rossel2-Oct-16 10:33
professionalSander Rossel2-Oct-16 10:33 
GeneralRe: What the NaN? Pin
BillWoodruff2-Oct-16 12:23
professionalBillWoodruff2-Oct-16 12:23 
GeneralRe: What the NaN? Pin
Mladen Janković2-Oct-16 12:40
Mladen Janković2-Oct-16 12:40 
GeneralRe: What the NaN? Pin
BillWoodruff2-Oct-16 16:17
professionalBillWoodruff2-Oct-16 16:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   502 votes