Page 1 of 1

Productivity in smelters issue

Posted: Thu Jul 06, 2017 3:08 pm
by lordpombearian
for some reason the productivity bonus in my smelters aren't working properly i have deconstructed them and reconstructed them to reset the productivity bonus so they start at 0% but for some reason some of them are getting stuck at 99% which shouldn't be happening (doing multiples of 5 actions at 20% productivity). any help is appreciated as I'm well and truely stumped.

It seems random as to which smelters do this and stop at 99% but it means that my trains are between 0 and 4 plates off. I have tried it with and without set stack bonus to check that its not an input issue. it would appear to be a maths issue in the code where some are counting to 100% and some are getting stuck on 99.99999%

http://imgur.com/a/g5x0e

Re: Productivity in smelters issue

Posted: Thu Jul 06, 2017 3:23 pm
by Rseding91
Thanks for the report. This is most likely due to the nature of floating point numbers and that adding n = n + 1/89th 100 times is not the same as n = 0.89. It works well enough across a normal game but when you try to sit and measure it at such small levels you see it show up.

We don't have any plans to change how crafting machines work so the setup you've created just won't work as you want.

Re: Productivity in smelters issue

Posted: Mon Jun 08, 2020 3:15 pm
by ickputzdirwech
This seems to be a duplicate of 49936.