[0.15.37] Circuit network reports fluid between 0 and 1 as=0

Things that has been reported already before.
Post Reply
tobyas
Burner Inserter
Burner Inserter
Posts: 5
Joined: Thu Jul 23, 2015 10:13 pm
Contact:

[0.15.37] Circuit network reports fluid between 0 and 1 as=0

Post by tobyas »

Hello,

If you connect a storage tank with a fluid between 0 and 1 (e.g. 0.7) to a circuit network and check if the amount of the fluid equals 0, it is evaluated to true. I would expect a fluid amount of 0.7 to not be equal to zero.

Attached is an savegame from a wave defense since it was easy to setup, but I encountered this problem in the normal game too.
Attachments
WaterTest.zip
(1.38 MiB) Downloaded 79 times


tobyas
Burner Inserter
Burner Inserter
Posts: 5
Joined: Thu Jul 23, 2015 10:13 pm
Contact:

Re: [0.15.37] Circuit network reports fluid between 0 and 1 as=0

Post by tobyas »

Oh sorry. Though rather hard to find with that title )-:

Did the devs ever mention why moving to integer based fluids is not an options?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.37] Circuit network reports fluid between 0 and 1 as=0

Post by Rseding91 »

tobyas wrote:Oh sorry. Though rather hard to find with that title )-:

Did the devs ever mention why moving to integer based fluids is not an options?
Because it's not precise enough. double precision floating points aren't precise enough so removing the floating point completely also isn't an option.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Duplicates”