Thread:Nickembrey/@comment-15636815-20150221173841/@comment-15636815-20150221225523

I do not know how the game rounds.

Pixel does not know how the game rounds.

Different portions of the code were written by different people who, apparently, didn't like to talk to each other. Therefore, the game rounds in different ways depending on the part of the game doing the rounding; plus the game's mood; plus the alignment of Mars, Saturn, and Neptune.

Since even the developers can't accurately say how the game rounds, I always do "standard" rounding to the nearest integer, and I round after every step of a calculation. Most of the time (98%), I get exactly the same number as the game does. Sometimes, my total is off by a tiny fraction. I can live with that.