Click here to Skip to main content
15,895,792 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: Oooh Heck!! Pin
Michael Martin2-Oct-16 20:57
professionalMichael Martin2-Oct-16 20:57 
GeneralRe: Oooh Heck!! Pin
OriginalGriff2-Oct-16 21:13
mveOriginalGriff2-Oct-16 21:13 
GeneralRe: Oooh Heck!! Pin
Nagy Vilmos2-Oct-16 21:34
professionalNagy Vilmos2-Oct-16 21:34 
GeneralRe: Oooh Heck!! Pin
Sander Rossel2-Oct-16 21:58
professionalSander Rossel2-Oct-16 21:58 
GeneralRe: Oooh Heck!! Pin
Mycroft Holmes2-Oct-16 22:57
professionalMycroft Holmes2-Oct-16 22:57 
GeneralRe: Oooh Heck!! Pin
dan!sh 3-Oct-16 1:09
professional dan!sh 3-Oct-16 1:09 
GeneralRe: Oooh Heck!! Pin
MarkTJohnson3-Oct-16 2:28
professionalMarkTJohnson3-Oct-16 2:28 
GeneralWhat the NaN? PinPopular
Sander Rossel2-Oct-16 5:45
professionalSander Rossel2-Oct-16 5:45 
C#
var result = new[] { 1, double.PositiveInfinity, double.NegativeInfinity, double.NaN }.Max(); // Infinity
var result = new[] { 1, double.PositiveInfinity, double.NegativeInfinity, double.NaN }.Min(); // NaN
var isNaNSmaller = double.NaN < 1; // false
So NaN is not the biggest value, it's still bigger than one, but it's also the smallest value.
I hate to sound infinitely negative, but that's messed up WTF | :WTF:
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
Richard MacCutchan2-Oct-16 6:01
mveRichard MacCutchan2-Oct-16 6:01 
GeneralRe: What the NaN? Pin
Sander Rossel2-Oct-16 6:12
professionalSander Rossel2-Oct-16 6:12 
GeneralRe: What the NaN? Pin
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? Pin
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 
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 

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.