Page 1 of 1

[0.14.22] Inconsistent rounding

Posted: Sat Mar 04, 2017 4:32 pm
by Killerbee
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.

Re: [0.14.22] Inconsistent rounding

Posted: Sun Mar 05, 2017 1:11 am
by vtx
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.

Re: [0.14.22] Inconsistent rounding

Posted: Fri Mar 24, 2017 2:06 pm
by Rseding91
I can't reproduce, it shows exactly what it should every time I test it rounding towards zero.