Display Bug: Stocks in Status

As bugs and suggestions are fixed/implemented/rejected, they will be moved in here.
Post Reply
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

Total is way skewed:

Sword ($60): $60,000
Textile ($59): $59,000
Cordial ($150): $150,000
Boats ($76): $0
Grain ($48): $2,942,297,134,069,104
Axe ($73): $73,000
Bow ($156): $156,000
Shield ($57): $57,000
Stone ($88): $88,000
Spear ($116): $116,000
Total ($80): $4,920,546,154,776,687

I have nowhere near the total there...
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

'nother example:

Stocks
Sword ($83): $83,000
Textile ($86): $86,000
Cordial ($116): $116,000
Boats ($79): $0
Grain ($100): $6,129,785,695,977,300
Axe ($76): $76,000
Bow ($127): $127,000
Shield ($88): $88,000
Stone ($77): $77,000
Spear ($83): $83,000
Total ($83): $5,098,867,193,228,391


Boy, did that grain value go up! XD
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
Veranor
FAF Co-Programmer
Posts: 310
Joined: Mon Mar 08, 2004 8:12 pm

Post by Veranor »

Should be resolved


Issue: The average price used in calculations basically had to assume you owned equal amounts of every share, as it was the average price of stocks in general, not the average price of your stocks.

The old way would do something like:

Stock1 Price: 73$
Stock2 Price: 80$
Stock3 Price: 90$

(73 + 80 + 90)/3 = avg price: 81

The problem is, even if you owned one share of stock 3 and 20,000 shares of stock 1, the "average" of the stock prices would be listed as 81 and then 81 * (20,001) = 1,620,081 when it should actually be 1,460,090.

Please test and let me know if there are still any issues

Thanks,
-Veranor.
"The truth is a trap: you can not get it without it getting you; you cannot get the truth by capturing it, only by its capturing you." - Søren Kierkegaard
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members