Just noticed some inconsistent behavior in-game.
For example when I take half a stack of roboports it will take 3.
When I have 1 stack of roboports in my hand and dump half it will dump 2 instead of 3.
Another example is a chest I have with 4 stack of belts.
When I take half I get 200 belts.
When I again take half I will get 96 belts instead of 100.
Hope this is enough information to solve this rounding inconsistency.
[0.14.22] Inconsistent rounding
Re: [0.14.22] Inconsistent rounding
Strange because I just test it and it's allways round-down either I take from a chest or placing into a chest.
From text when placing into a chest with 5 items : -2 robotports (3)
When taking item from chest with 5 items inside : +2 robotport (2)
What's between "()" are what is left in your inventory.
From text when placing into a chest with 5 items : -2 robotports (3)
When taking item from chest with 5 items inside : +2 robotport (2)
What's between "()" are what is left in your inventory.
Re: [0.14.22] Inconsistent rounding
I can't reproduce, it shows exactly what it should every time I test it rounding towards zero.
If you want to get ahold of me I'm almost always on Discord.