Train stations Signal output appears to be rounding incorrectly
have fluid wagon with each tank containing 0.5 train show content as 1.5
however a signal wire attached to train staion reads 0
i would guess train summing before rounding round(0.5+0.5+0.5) = 1.5
where as station is rounding before summing round(0.5)+round(0.5)+round(0.5) = 0
a second case have fluid wagon with each tank containing 0.3 train show content as 1 rather than 1.3
however a signal wire attached to train staion reads 0
i would guess train summing before rounding round(0.3+0.3+0.3) = 1
where as station is rounding before summing round(0.3)+round(0.3)+round(0.3) = 0
if stations listing total should probably sum before rounding for signal output
notice when trying to setup stations that dont acidently unload wrong things, but at the moment even with three pumps using inventory > 0 condition leaves fractions in the train
[0.15.25] Train Station fluid Content signal Rounding error
-
- Burner Inserter
- Posts: 8
- Joined: Fri Jun 30, 2017 5:22 pm
- Contact:
[0.15.25] Train Station fluid Content signal Rounding error
- Attachments
-
- factorio-current.log
- (28.34 KiB) Downloaded 95 times