Swedish Stock Exchange Hit By Programming Snafu 136
New submitter whizzter writes "I was reading the Swedish national news today and an image in a stock exchange related article struck my eye. An order had been placed for 4 294 967 290 futures (0xfffffffa or -6 if treated as a 32-bit signed integer), each valued at approximately 16,000 USD, giving a neat total of almost 69 trillion USD. The order apparently started to affect valuations and was later annulled, however it is said to have caused residual effects in the system and trading was halted for several hours."
Sven and Ole Found a Trading App (Score:5, Funny)
Ole: *takes the phone and looks at the screen* Oh hey idn't dat neat? A stock trading app!
Sven: Yeah I'm like a big shot power björker now! Börk! Börk! Börk!
Ole: Oh ja, you betcha, hey I gotta a hot tip, I'm gonna buy six futures of Ikea for ya.
Sven: Ole, you idiot! Stop that, I've only got a few cents on my account.
Ole: Oh! Jajaja, oops, you're in da red now. Oofta, I'll fix this here, lemme just sell 'em real quick.
Sven: No, stop, you'll just make things worse!
Ole: I don't see a 'sell' button on dis thing, oh, I know! *punches some buttons* Oh dear. Oh shoot. Ja, I'm in a little over my head here, Sven.
Sven: *grabs the phone* Negative 460 trillion dollars!? OLE, WHAT DID YOU DO?
Ole: Oh well, ya see, I just bought negative six shares, ja? To undo me buying six positive shares, ja? And I guess der was like
Just be happy they weren't using 64-bit integers (Score:2, Funny)
Imagine it 0xFFFFFFFFFFFFFFFA. That's a big enough number that it's unreasonable to type without scientific notation :)
Re:Curious how they did that ... (Score:5, Funny)
The RIAA will have the money to do that once Napster pays up... and have $3 trillion left over
Re:Good Point Here (Score:5, Funny)
This is why you always use dynamic storage like a link list when you potentially have to deal with numbers bigger then the address bus width.
Naah just use a FLOAT. After all, nothing bad could ever happen when doing financial calcs with FLOATs, right?
(note to sarcasm impaired... ahh on 1.9999999nd thought forget about it)
New math (Score:4, Funny)
Well, at least now we know how RIAA calculates its damages; They must have hired the same developer...
Re:Sven and Ole Found a Trading App (Score:3, Funny)
'll pay ya back after I settle up with da liquor store first, of course.
Slashdot: We aren't racist/sexist. We shamelessly pick on everyone.
Re:Curious how they did that ... (Score:5, Funny)
How about this scenario:
"I can put in trades for any amount with this terminal"
"Any amount? What happens if you put in a negative trade?"
"It should kick out an error like this watch... I will place negative 6."
"Hey it took it! Lol I bet you just bought 6 shares!"
"Lets see it looks like it just....oh shit".
Re:Just be happy they weren't using 64-bit integer (Score:5, Funny)
That's a big enough subnet for everybody. /IPv6 humor
Re:Just wrote a 2500 pg paper on flash trading (Score:5, Funny)
.
Dude, you must be tired. 2500 pages? Or did you really mean 2500 words? Or was this a deliberate attempt to add to the humor by using the wrong units with the number? Or an amusing way to show how easily errors can slip by humans? Or just a result of tired-ness after typing and proof-reading that 2500 page essay?