- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
FIRST
Admin
Bah, you could have at least said "FIRST OF INFINITY!"
Admin
Hey Joe, I never get SPAM about my gay issues, so what kind of sites have you been visiting anyway?
Admin
mebbe that explains the current banking crisis;-)
Admin
In Monty's case, I suspect the system was explaining that any amount you withdraw must be divisable by your current balance!
Admin
printf("I bet 90% of you won't get the spam WTF.");
Admin
Why is Bruce paralyzed with uncertainty? He doesn't even have a choice.
Admin
Perhaps he's really paralyzed with certainty. He has no other options.
/divides by zero and hits the deck
Admin
What game is that a screenshot from ?
Admin
That's from EVE online... I'm not really suprised, EVE devs are famous for these kind of error messages.
Admin
Eve Online.
Admin
EVE online, I think
Admin
EVE Online. Apparently.
Admin
I think its from EVE ONline!
Admin
Admin
Ah, now I know that it's EVE Online. Whatever this is.
Alas Maren didn't tell us what happened after she requested more information...
Admin
It's the hidden level from Hello Kitty Island Adventure.
Admin
Apparently Monty forgot they "ain't so good at math" there in Alabama
Admin
It's from Madden 2005.
Admin
My theory is that the ATM is out of cash (or really low on all the different bills), and that led to an error in the loop that sets the lowest amount cashable.
Or maybe a bank teller had just refilled the stock of 0$ bills
Admin
I'm not really sure, but I think it's EVE Online. Maybe someone else can verify.
Admin
Jump to Comment Infinity of Infinity
Admin
Admin
Just a whit of wit?
Admin
Has anyone said it's from EVE Online yet?
Admin
You're right, yes. It's EVE Online. I'm surprised nobody else knows that. It's a pretty popular game.
Admin
Congrats, you are the seventh person to point out this game. Yes, the screenshot is from EVE Online during a portion where a player is in a hangar, talking to an agent, and getting breifed on a mission. The game is riddled with Goons so don't bother playing unless you want to be raped by a bunch of drunken Irish, Scottish, and British men with nothing better to do but be ass pirates.
Admin
Now, all we need to do is
Admin
KTHXBAI
Admin
Hint to OP: It needs to be "smaller than", not "divisable(sic) by".
Your theory pretty much wins hands down. I'm guessing that zero is "the size of the smallest bill which the ATM has any left of" - i.e. it's completely empty. Zero-dollar bills? I'm sure we did this one before....Admin
Clearly, the screen should read "Amount Entered must give an exact integer result when divided by:", which is both clear and comprehensive.
Admin
There is an EASY way to prevent divide by zero errors, so easy that I am surprised they haven't built it into the .NET framework yet... Simply add 0.000000001 to the denominator. This is such a small number that it makes no significant difference to the result. I like to make a constant, something like this and it works like a champ...
Const NODBZ As Double = 0.000000001 ...
X = Y / (Z + NODBZ)
Then just round it when you are done.
Admin
...and which statement only four people in the state will understand.
Admin
Nullity is the Real WTF.
Admin
EVE - 'Where geeks get to be bullies'. Great game for PvP, but anything else is boring or impossible.
Admin
Or perhaps, you know, the divide-by-zero exception flags up the fact that there is a bug in the algorithm, and your little add-on just hid it?
Admin
"How many times your current balance would you like to withdraw? Please press 1, 2 or 3."
Admin
If it really is out of bills, it's the most sane and mathematically correct answer to give, assuming that the person withdrawing money is also mathematically minded.
Admin
Admin
Admin
That's impressively stupid.
Suppose that Y is 1E-20 and Z is also 1E-20. You've just introduced a factor 100,000,000,000 error in the result.
Suppose that Y is -1E-9 and Z is also -1E-9. That should just be 1, but thanks to you it's a divide by zero!
Admin
Ever heard of Try/Catch?
I should have clarified, this solution is for Integers... it becomes a decimal when you add 0.000000001 to it, that is why I said you have to round it back.
Admin
I swear to God I'm going to pistol whip the next guy who says, "EVE Online."
Admin
Admin
Admin
It's not "100 2.04858e+290 growth", it's "100 2.04858e+290rowth".
I'm not sure what rowth is, but I still don't want 2.04858e+290 of it.
Admin
EVE Online
(captcha: EVE Online)
Admin
Admin
Admin
Hey Farva, whats the name of that online game you like to play? You know the MMORPG with the space ships?