Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "underflow"
-
Fun fact:
In the game Civilization, Gandhi had a aggression rating of 1 which means he didn't declare war on anyone. Now whenever someone Researched Democracy their aggression rating dropped by 2. Now instead of it dropping to - 1, it caused an integer underflow and the aggression rating became the highest possible value, making Gandhi into a nuclear warlord. He nuked everyone!
20 -
Just noticed that it's possible to get a negative vote count on a devRant profile. So I'm wondering if it's possible to underflow the vote count? @dfox3
-
I just saw some loan/bank ad that read something around the line "when the budget goes negative, the minus becomes plus" ("Când bugetul dă cu minus, minusul se face plus")
NO, this isn't a feature, it's a bug and it's called "underflow"4 -
So I get three wishes, right? Great! I wish I lose 3 wishes.
By that logic I start at three, minus one for the wish, and then proceed to lose another three leaving me at -1. So by our logic, we’d be back at 3 due to underflow.
To exploit this, make one genuine wish and then ask to lose two wishes, underflowing again.
It’s all in how you play the game.8 -
I really love Django, but I feel like Python is not object oriented enough. I'm thinking about Play (the Java web framework). Any other suggestions?10

