Cargo bug?

noxley2525

Spaceman
I have a stock galaxy with the cargo expansion.
When I'm in the commodity exhange it shows I have 154.696 of 154.696 space remaining instead of 200. My cargo is empty. I've tried buying a full load of cargo and selling it, didnt fix it.
Tried saving and restarting, moving to a different system and checked out the repair screen, all components are 100% and the basic repair says no repair required.
any idea's?
 
Yeah, cargo computations are full of bugs, I find. Without going much further, the use of floating point numbers is incorrect. It should be using integers, as the numbers of any item are naturally integers, unless they are planning to allow you to buy fractional amounts of say tons of wheat, or let you buy in imperial units and sell in metric.. ;-)
In my programming experience, one should not use floating point unless there is no way to use integers. In accounting, one uses integers in units of 1/100ths of a cent.
Floating point numbers are terrible as accumulators, as their absolute precision decreases as the absolute size of the number increases. When using floats for counting integral units of anything, basically one only has 23 bits, versus 32 for an int; and floats are a lot slower than ints for adding and subtracting, and often cause problems when compared.
(Not to speak of the 3 or 4 "flavors" of zero that they sport... ;-)
 
Back
Top