June 2017
Intermediate to advanced
416 pages
12h 30m
English

In 1982, The Vancouver Stock Exchange established a stock index, scaled to initially equal 1000. The index steadily declined to 520 over the next two years even though the economy was healthy. The index was being updated by adding and subtracting changes in the stocks, using floats rounded to three decimals, so rounding error accumulated. Recalculating the stock index from the actual stock prices showed the index was actually 1098, not 520. The accumulation of approximations would have been obvious, had unum arithmetic been used.
The prototype ...