Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
Software

Submission + - Stockholm stock exchange paralyzed by order for -6 futures-> 2 2

An anonymous reader writes: On Wednesday the Stockholm Stock Exchange was brought to a grinding halt by an order for -6 futures.

The reason boils down to how the system reacts to a negative number. It will attempt to convert -6 into a positive number it can then use to trade with. The problem is, -6 gets changed to 4,294,967,290 when converted to an unsigned integer. So rather than carrying out the intended 6 futures purchase, the stock exchange tried to buy 4,294,967,290 futures. Each of those apparently had a value of $107,000, meaning the cost of the transaction to the buyer would be about $460 trillion.

Link to Original Source
This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.

Stockholm stock exchange paralyzed by order for -6 futures

Comments Filter:

1.79 x 10^12 furlongs per fortnight -- it's not just a good idea, it's the law!

Working...