[2.1] Minimum and maximum functions in arithmetic combinators.

Ideas that are too old (too many things have changed since) and ones which won't be implemented for certain reasons or if there are obviously better suggestions.

Moderator: ickputzdirwech

everything-narrative
Inserter
Inserter
Posts: 26
Joined: Fri Aug 16, 2019 5:31 pm
Contact:

[2.1] Minimum and maximum functions in arithmetic combinators.

Post by everything-narrative »

TL;DR
Add mininum and maximum functions to the arithmetic combinator.
What?
Add `min` and `max` to the existing set of operators, and implement them in the obvious way.
Why?
In lieu of the decider combinator getting a major upgrade, the arithmetic combinator is in need of some extra functionality, and this is a very minor feature that I have on multiple occasions wanted to have.
"Min and max are not arithmetic operations."
Then lets get rid of AND/OR/XOR and bit shifts too, because they aren't arithmetic either ;)
"Can't the decider combinator do this?"
Glad you asked. Here's a challenge for you: I would like the maximum value of signal A and signal B output as signal C.

Code: Select all

C = max(A, B)
With my proposal it would be as simple as:
08-17-2026, 16-28-14.png
08-17-2026, 16-28-14.png (15.15 KiB) Viewed 151 times
If you can show how the decider combinator can do this, hats off to you because the best I can do is maximum of A and a constant output as A:
08-17-2026, 16-26-53.png
08-17-2026, 16-26-53.png (56.3 KiB) Viewed 151 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4812
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.1] Minimum and maximum functions in arithmetic combinators.

Post by boskid »

This was already answered but you vandalized previous topic. I am not going to play cat and mouse.
Locked

Return to “Outdated/Not implemented”