Questions regarding rounding
Posted: Sun Oct 11, 2015 1:59 pm
I was looking at the mining numbers and I'm wondering if or where rounding happens in the calculation and how rounding is handled if at all in the game. For example, an electric mining drill with no modules mines iron at a rate of .525 per second which ends up as 1 iron mined every 1.90476(repeating) seconds. Given how the game does calculations in tick increments that are 1/60th of a second, would the actual output be rounded up or down? The previous 1.904 and so on would round down to an even 1.9 or 114 ticks if the rounding was done at the end, or round up to 1.91666 which is 115 ticks. My guess given the flow chart listed at https://www.factorio.com/blog/post/fff-70 would be it would round up to 115 ticks since the process isn't done at 114.
Or does the game do something entirely different?
Or does the game do something entirely different?