Click here to Skip to main content
15,887,214 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: National Library - impressing support performance Pin
jmaida15-Feb-24 8:48
jmaida15-Feb-24 8:48 
GeneralRe: National Library - impressing support performance Pin
Gary R. Wheeler16-Feb-24 12:32
Gary R. Wheeler16-Feb-24 12:32 
GeneralRe: National Library - impressing support performance Pin
jmaida16-Feb-24 16:33
jmaida16-Feb-24 16:33 
GeneralRe: National Library - impressing support performance Pin
Gary R. Wheeler17-Feb-24 6:47
Gary R. Wheeler17-Feb-24 6:47 
GeneralRe: National Library - impressing support performance Pin
jmaida17-Feb-24 7:33
jmaida17-Feb-24 7:33 
GeneralRe: National Library - impressing support performance Pin
trønderen16-Feb-24 17:11
trønderen16-Feb-24 17:11 
GeneralRe: National Library - impressing support performance Pin
Gary R. Wheeler17-Feb-24 6:54
Gary R. Wheeler17-Feb-24 6:54 
GeneralFollowing on from yesterday's little puzzler. PinPopular
OriginalGriff15-Feb-24 4:23
mveOriginalGriff15-Feb-24 4:23 
It seem that many of us are convinced that -∞ is larger than 0 so I thought I'd try and explain why that isn't the case, even though it does seem to make sense.

Let's look at what "greater than" actually means (in all cases I'll use integers but it's exactly the same for floating point numbers).
1 is greater than 0, 2 is greater than both 1 and 0, 3 is greater than 2, 1, and 0, and so on: the general case is "if you add a positive number* to a value, you get a value that is greater than the original":
X + n > X where n is any positive number.
Similarly, "less than" comes down to:
X - n < X where n is any positive number.

And it works:
2 > 1 because 1 + 1 == 2; 3 > 1 because 1 + 2 == 3; ...
1 < 2 because 2 - 1 == 1; 1 < 3 because 3 - 2 == 1; ...
And we can use "greater than" and "Less than" for find maxima and minima for a set of numbers.

We can find the smallest positive number by taking any positive number as a starting point and repeatedly subtracting 1 until we reach a non-positive value (which will be zero): 1 was the last, so it's the smallest positive number.
Everyone here has agreed on that!

But when we look for the largest negative number it seems that some people are mistaking the absolute magnitude of a value for the value itself, and saying that the largest negative number is -∞
But that's not the case: just as numbers get smaller as you approach 0 from the positive side, they don't start getting bigger again as you move away into the negative side:
1 > 0; 1 > -1; 1 > -2
Slide that sideways and it's clearer for negative numbers:
0 > -1; 0 > -2; 0 > -3
-1 > -2; -1 > -3; -1 > -4

So to find the largest negative number, we start with any negative number as a starting point and repeatedly adding 1 until we reach a non-negative value (which will be zero): -1 was the last, so that's the largest negative number.

Make sense?


* Zero is neither positive nor negative because the definition of both those terms stems from the direction of X from 0.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!


modified 16-Feb-24 4:00am.

GeneralRe: Following on from yesterday's little puzzler. Pin
Rage15-Feb-24 4:51
professionalRage15-Feb-24 4:51 
JokeRe: Following on from yesterday's little puzzler. Pin
Mircea Neacsu15-Feb-24 5:13
Mircea Neacsu15-Feb-24 5:13 
GeneralRe: Following on from yesterday's little puzzler. Pin
Nelek15-Feb-24 5:37
protectorNelek15-Feb-24 5:37 
GeneralRe: Following on from yesterday's little puzzler. Pin
Alister Morton15-Feb-24 22:26
Alister Morton15-Feb-24 22:26 
GeneralRe: Following on from yesterday's little puzzler. Pin
Gary Wheeler16-Feb-24 0:58
Gary Wheeler16-Feb-24 0:58 
GeneralRe: Following on from yesterday's little puzzler. Pin
Alister Morton16-Feb-24 1:11
Alister Morton16-Feb-24 1:11 
GeneralRe: Following on from yesterday's little puzzler. Pin
Gary Wheeler16-Feb-24 1:13
Gary Wheeler16-Feb-24 1:13 
GeneralRe: Following on from yesterday's little puzzler. Pin
Amarnath S15-Feb-24 4:54
professionalAmarnath S15-Feb-24 4:54 
GeneralRe: Following on from yesterday's little puzzler. Pin
Paul612415-Feb-24 5:19
Paul612415-Feb-24 5:19 
GeneralRe: Following on from yesterday's little puzzler. Pin
OriginalGriff15-Feb-24 5:24
mveOriginalGriff15-Feb-24 5:24 
GeneralRe: Following on from yesterday's little puzzler. Pin
Andre Oosthuizen16-Feb-24 5:54
mveAndre Oosthuizen16-Feb-24 5:54 
GeneralRe: Following on from yesterday's little puzzler. Pin
jschell15-Feb-24 12:05
jschell15-Feb-24 12:05 
GeneralRe: Following on from yesterday's little puzzler. Pin
Paul612416-Feb-24 2:31
Paul612416-Feb-24 2:31 
GeneralRe: Following on from yesterday's little puzzler. Pin
jschell16-Feb-24 7:11
jschell16-Feb-24 7:11 
GeneralRe: Following on from yesterday's little puzzler. Pin
Paul612416-Feb-24 5:15
Paul612416-Feb-24 5:15 
GeneralRe: Following on from yesterday's little puzzler. Pin
0x01AA15-Feb-24 5:06
mve0x01AA15-Feb-24 5:06 
GeneralRe: Following on from yesterday's little puzzler. Pin
Mircea Neacsu15-Feb-24 5:06
Mircea Neacsu15-Feb-24 5:06 

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.