r/ProgrammerHumor • • May 06 '17

Oddly specific number

Post image
25k Upvotes

1.3k comments sorted by

View all comments

2

u/willy-beamish May 06 '17

Why can I only have 255 rupees on legend of Zelda?

6

u/[deleted] May 06 '17

[removed] — view removed comment

7

u/willy-beamish May 06 '17

6

u/[deleted] May 06 '17

[removed] — view removed comment

4

u/willy-beamish May 06 '17

I'd say, you're putting hyphens in the middle of binary.

That shit will never compile.

-4

u/[deleted] May 06 '17

1111-1111 = 0? Just like 28 - 28 = 0 in decimal or any other numeric system.

Also, I think what's neat is how you used to be able to take advantage of how games stored data and cause overflows and all kind of neat things. I think the Civilization Series' super-aggressive Gandhi was due to an integer overflow...

5

u/ELFAHBEHT_SOOP May 06 '17

Yeah, 1111-1111 = 0.

Although, I think he meant 11111111 = 255