When you buy a stock, it rounds the price up, and when you sell, it rounds down (this makes sense). Hence this transaction nets -2$:
[image: i.gyazo.com]
But the log doesn't round the same way - it seems to round to the nearest dollar instead:
[image: i.gyazo.com]
So my log would indicate I should only be out $1, but really I'm down $2, making it seem like money disappeared. The log should, ideally, display the actual purchase/sale value ($48/$46) instead of a rounded value ($47/$46).
[image: i.gyazo.com]
But the log doesn't round the same way - it seems to round to the nearest dollar instead:
[image: i.gyazo.com]
So my log would indicate I should only be out $1, but really I'm down $2, making it seem like money disappeared. The log should, ideally, display the actual purchase/sale value ($48/$46) instead of a rounded value ($47/$46).