I tried to use a 0.01 multiplier in a constant combinator group.
Expected outcome:
100 * 0.01 = 1
200 * 0.01 = 2
2000 * 0.01 = 20
What happened instead:
100 * 0.01 = 0
200 * 0.01 = 1
2000 * 0.01 = 19
I think it's because float values, but a 0.1 multiplier works fine here:
100 * 0.1 = 10
200 * 0.1 = 20
2000 * 0.1 = 200
example blueprint
Might be related to viewtopic.php?t=134202
[2.1.16] Constant combinator multiplier unexpected float output
-
burninghey
- Fast Inserter

- Posts: 178
- Joined: Fri Sep 14, 2018 2:06 am
- Contact:
Re: [2.1.16] Constant combinator multiplier unexpected float output
The current logic does floor(value * multiplier). It could change it, but I don't see a particular reason to change it to round or ceil.
Multiplying things by such tiny multipliers just asks for issues like this. Its original purpose was positive values and the fact it works at all with values as small as 0.01 seems extra to me. It just generates bug reports like this.
Multiplying things by such tiny multipliers just asks for issues like this. Its original purpose was positive values and the fact it works at all with values as small as 0.01 seems extra to me. It just generates bug reports like this.
If you want to get ahold of me I'm almost always on Discord.
