# Arithmetic combinator

The arithmetic combinator is part of the circuit network and one of three types of combinators available in the game. It is used to perform simple mathematical operations on signals, capable of addition, subtraction, multiplication, or division. The arithmetic combinator accepts two input connections (red and green wires), and sends its output to both output connections. The input wires connect to the nubs on the left side of the above sprite, while the output is on the opposite side.

## Function

The internal logic process has three steps:

1) All input signals on the red and green wires are summed within the combinator.

2) The specified operation (+, -, *, or /) is performed on the selected signal(s).

3) The result of this operation is output as the selected output signal.

The arithmetic combinator can handle special signals. Notice that when using division as operation the result is truncated.

Modulo: marked somewhat confusingly as %, is the remainder after division. For example 10 modulo 3 is 1 (3*3=9, remainder 1). This can be used for example to separate out thousands, hundreds, tens and ones for use in building visual indicators. e.g.

24321 modulo 10000 = 4321

24321 modulo 1000 = 321

24321 modulo 100 = 21

24321 modulo 10 = 1

## History

**0.15.0**:- Added Modulo, Power, Left Bit Shift, Right Bit Shift, Bitwise AND, Bitwise OR and Bitwise XOR to the Arithmetic Combinator.

**0.13.0**:- Connected wires are highlighted when hovering over a combinator connected to the circuit network.
- Combinators show input and output in alt mode.
- More virtual signals for combinators.
- Constant combinator can be rotated.
- Decider combinator "input count" option makes the combinator copy the count of the specified output signal from the input signals, instead of copying the count from the condition.
- New combinator graphics.

**0.12.5**:- Combinators now emit light.

**0.12.2**:- Combinators no longer turn off when no wires are connected.

**0.12.0**:- Introduced