Click here to Skip to main content
15,905,683 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
Sander Rossel2-Oct-16 6:12
professionalSander Rossel2-Oct-16 6:12 
GeneralRe: What the NaN? PinPopular
Florian Rappl2-Oct-16 6:42
professionalFlorian Rappl2-Oct-16 6:42 
GeneralRe: What the NaN? Pin
Sander Rossel2-Oct-16 8:34
professionalSander Rossel2-Oct-16 8:34 
GeneralRe: What the NaN? Pin
Florian Rappl2-Oct-16 20:17
professionalFlorian Rappl2-Oct-16 20:17 
GeneralRe: What the NaN? Pin
Richard MacCutchan2-Oct-16 6:52
mveRichard MacCutchan2-Oct-16 6:52 
GeneralRe: What the NaN? Pin
Sander Rossel2-Oct-16 8:44
professionalSander Rossel2-Oct-16 8:44 
GeneralRe: What the NaN? PinPopular
Mladen Janković2-Oct-16 9:54
Mladen Janković2-Oct-16 9:54 
GeneralRe: What the NaN? Pin
Sander Rossel2-Oct-16 10:13
professionalSander Rossel2-Oct-16 10:13 
0/0 should throw a DivideByZeroException (which it does for integers).
And apparently 1/0 equals infinity.
Now what is it? NaN, infinity or just plain not possible?

Doesn't it sound weird (and, indeed, very wrong) that a NUMERIC type has a value "NOT A NUMBER"!?

Anyway, when I said "why would there even be a NaN anyway" I was referring to NaN in actual real life business cases that make sense and have practical use Smile | :)
Read my (free) ebook Object-Oriented Programming in C# Succinctly.
Visit my blog at Sander's bits - Writing the code you need.
Or read my articles here on CodeProject.
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
Regards,
Sander

GeneralRe: What the NaN? Pin
Mladen Janković2-Oct-16 10:24
Mladen Janković2-Oct-16 10:24 
GeneralRe: What the NaN? Pin
Sander Rossel2-Oct-16 11:05
professionalSander Rossel2-Oct-16 11:05 
GeneralRe: What the NaN? Pin
Mladen Janković2-Oct-16 12:33
Mladen Janković2-Oct-16 12:33 
GeneralRe: What the NaN? Pin
Richard MacCutchan2-Oct-16 22:41
mveRichard MacCutchan2-Oct-16 22:41 
GeneralRe: What the NaN? Pin
Sander Rossel2-Oct-16 22:51
professionalSander Rossel2-Oct-16 22:51 
GeneralRe: What the NaN? Pin
Richard MacCutchan2-Oct-16 22:54
mveRichard MacCutchan2-Oct-16 22:54 
GeneralRe: What the NaN? Pin
Sander Rossel2-Oct-16 23:20
professionalSander Rossel2-Oct-16 23:20 
GeneralRe: What the NaN? Pin
Richard MacCutchan2-Oct-16 23:30
mveRichard MacCutchan2-Oct-16 23:30 
GeneralRe: What the NaN? Pin
Sander Rossel3-Oct-16 6:00
professionalSander Rossel3-Oct-16 6:00 
GeneralRe: What the NaN? Pin
Richard MacCutchan3-Oct-16 6:21
mveRichard MacCutchan3-Oct-16 6:21 
GeneralRe: What the NaN? Pin
Theraot4-Oct-16 1:33
Theraot4-Oct-16 1:33 
GeneralRe: What the NaN? Pin
Herbie Mountjoy4-Oct-16 2:25
professionalHerbie Mountjoy4-Oct-16 2:25 
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 

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.