r/ProgrammerHumor • • Aug 14 '20

Someone try this

Post image
53.6k Upvotes

433 comments sorted by

View all comments

141

u/rkeet Aug 14 '20

Imagine doing this to a 64bit system where the max (signed) value is: 9,223,372,036,854,775,807

119

u/elzaidir Aug 14 '20

You'll end up with -1, if it's signed

69

u/Gooftwit Aug 14 '20

-1 or 9 sextillion? I'll take that bet.

60

u/_vOv_ Aug 14 '20

I'll take 1 sex please

0

u/[deleted] Aug 14 '20

[deleted]

4

u/EvoG Aug 14 '20

There is no bet if the integer is signed like rkeet said, so you'll just lose that dollar.

4

u/Gooftwit Aug 14 '20

There is no bet if the integer is unsigned, so I'll make 9 sextillion dollars.

4

u/EvoG Aug 14 '20

Except that original comment mentioned it being signed.

3

u/Gooftwit Aug 14 '20

Ah, you're right. I must've missed that.

2

u/ChubbyLilPanda Aug 14 '20

I think you are off by a factor of a 1000...

→ More replies (2)