|
|
|
| Non-WTF Job: C++ Developer at Good Grievance (Ronkonkoma, NY) |
| « Prev | Page 1 | Page 2 | Page 3 | Next » |
|
FIRST
|
Re: Unprepared For Divide_By_Zero
2008-10-02 08:06
•
by
Molt
(unregistered)
|
|
Bah, you could have at least said "FIRST OF INFINITY!"
|
|
Hey Joe, I never get SPAM about my gay issues, so what kind of sites have you been visiting anyway?
|
|
mebbe that explains the current banking crisis;-)
|
Re: Unprepared For Divide_By_Zero
2008-10-02 08:14
•
by
ParkinT
|
|
In Monty's case, I suspect the system was explaining that any amount you withdraw must be divisable by your current balance!
|
|
printf("I bet 90% of you won't get the spam WTF.");
|
|
Why is Bruce paralyzed with uncertainty? He doesn't even have a choice.
|
Re: Unprepared For Divide_By_Zero
2008-10-02 08:30
•
by
Ryuzaki
(unregistered)
|
|
Perhaps he's really paralyzed with certainty. He has no other options.
/divides by zero and hits the deck |
|
What game is that a screenshot from ?
|
|
That's from EVE online... I'm not really suprised, EVE devs are famous for these kind of error messages.
|
Re: Unprepared For Divide_By_Zero
2008-10-02 08:37
•
by
Stephen Eilert
(unregistered)
|
|
Eve Online.
|
Re: Unprepared For Divide_By_Zero
2008-10-02 08:38
•
by
jakub
(unregistered)
|
EVE online, I think |
Re: Unprepared For Divide_By_Zero
2008-10-02 08:40
•
by
DaveyDaveDave
|
EVE Online. Apparently. |
|
I think its from EVE ONline!
|
Re: Unprepared For Divide_By_Zero
2008-10-02 08:44
•
by
JimmyVile
(unregistered)
|
EVE Online |
|
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... |
Re: Unprepared For Divide_By_Zero
2008-10-02 08:46
•
by
Mr^B
(unregistered)
|
It's the hidden level from Hello Kitty Island Adventure. |
|
Apparently Monty forgot they "ain't so good at math" there in Alabama
|
|
It's from Madden 2005.
|
Re: Unprepared For Divide_By_Zero
2008-10-02 08:56
•
by
Kalleguld
(unregistered)
|
So he's only allowed to withdraw his whole balance, or multiples thereof? 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 |
|
I'm not really sure, but I think it's EVE Online. Maybe someone else can verify.
|
Re: Unprepared For Divide_By_Zero
2008-10-02 09:00
•
by
amischiefr
|
|
Jump to Comment Infinity of Infinity
|
Re: Unprepared For Divide_By_Zero
2008-10-02 09:08
•
by
Adriano
(unregistered)
|
That's what it says on the first page: "Page 1 of Infinity". |
|
Just a whit of wit?
|
Re: Unprepared For Divide_By_Zero
2008-10-02 09:14
•
by
Anonymouse
(unregistered)
|
|
Has anyone said it's from EVE Online yet?
|
Re: Unprepared For Divide_By_Zero
2008-10-02 09:16
•
by
DaveyDaveDave
|
You're right, yes. It's EVE Online. I'm surprised nobody else knows that. It's a pretty popular game. |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:19
•
by
LightStyx
|
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. |
It's a format string vulnerability in the ratware; it's taken a %g floating point conversion from what is supposedly the spam template (which often use %-specifiers for their hashbuster, mailmerge and other variable parts of the spam). Now, all we need to do is 1) Figure out which spamware was in use and get a copy 2) Write an exploit that looks like a piece of spam mail 3) Hire a spammer to mass mail our "latest marketing campaign". 4) ???? 5) Profi... err I mean PWN4G3! |
OH, HAI, I IZ FIXIN' UR SARKAZM DETEKTOR KTHXBAI |
The OP is really random here. Even the other way up, that division wouldn't make any sense; why would a bank want you to only be able to withdraw 1/N.th of your money (for any N > 0) and not any other fraction? 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.... |
Of course, that doesn't really help, because any number is divisible by zero (the result is undefined, but the number itself is divisible by zero), or indeed any other number (For instance, 38.53 is divisible by 10). Clearly, the screen should read "Amount Entered must give an exact integer result when divided by:", which is both clear and comprehensive. |
|
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. |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:44
•
by
Old Coder
(unregistered)
|
...and which statement only four people in the state will understand. |
|
Nullity is the Real WTF.
|
Re: Unprepared For Divide_By_Zero
2008-10-02 09:48
•
by
anonymous_coder()
(unregistered)
|
EVE - 'Where geeks get to be bullies'. Great game for PvP, but anything else is boring or impossible. |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:49
•
by
Old Coder
(unregistered)
|
Riiiight. So, just divide by a very very small number, and your result turns out to be a very very large number, which might cause an overflow exception instead. Very useful. 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? |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:49
•
by
Teller
(unregistered)
|
In which case the ATM's user interface could (and probably should) be simplified: "How many times your current balance would you like to withdraw? Please press 1, 2 or 3." |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:50
•
by
Dascandy
(unregistered)
|
|
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.
|
Re: Unprepared For Divide_By_Zero
2008-10-02 09:50
•
by
/b Zap Brannigan b/ (Deleted as Troll)
(unregistered)
|
Yes that message would only make sense in the Eurpean version. The US message should be something like: You got no money fool! Would you like to apply for credit Y/N? |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:51
•
by
Daedalus
(unregistered)
|
Whut. No. NO. There are two ways to interpret "a is divisible by b": 1. (The way EVERYONE does it) a/b is an integer. b is often an integer, but this is not necessary (i.e., 4.5 is divisible by 1.5 but not by 1) 2. (Your own special way) a/b is defined. In other words, b!=0 Neither of these defends having a number be divisible by zero. How can you claim 4 is divisible by 0, if 4/0 is undefined? |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:52
•
by
Dascandy
(unregistered)
|
|
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! |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:53
•
by
TopCod3r
|
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. |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:54
•
by
SS
(unregistered)
|
|
I swear to God I'm going to pistol whip the next guy who says, "EVE Online."
|
Re: Unprepared For Divide_By_Zero
2008-10-02 09:55
•
by
Zap Brannigan
(unregistered)
|
I know I'm replying to TopCod3r, but I have actually used this technique. If someone has a better solution, I'm listening. |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:57
•
by
Daedalus
(unregistered)
|
When making snide comments about how idiotic Americans are, try to at least spell correctly. Although "Eurpean" is a funny word. CAPTCHA: populus |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:58
•
by
EatenByAGrue
(unregistered)
|
|
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. |
|
EVE Online
(captcha: EVE Online) |
Re: Unprepared For Divide_By_Zero
2008-10-02 09:59
•
by
TheRider
|
Very smart idea actually. So let me try to divide by Z = -0.000000001 Oops. |
Re: Unprepared For Divide_By_Zero
2008-10-02 10:00
•
by
Teller
(unregistered)
|
... and which statement still gets us nowhere if the ATM is trying to tell us that the amount entered must give an exact integer result when divided by $0.00. |
Re: Unprepared For Divide_By_Zero
2008-10-02 10:00
•
by
Jetts
(unregistered)
|
Hey Farva, whats the name of that online game you like to play? You know the MMORPG with the space ships? |
| « Prev | Page 1 | Page 2 | Page 3 | Next » |