Modding
Discord Wishlist on Steam

Node book›Maths

Maths

Adds, subtracts, multiplies or divides whatever it is given; the dropdown picks which.

One node on the bench: its dropdown switches between the choices below, keeping the wires that still fit. In a file each choice has its own id.

ChoiceIdWhat it does
+ Addmath/AddAdds them up: whole numbers stay whole, a number makes a number, positions and colours go by their parts.
− Subtractmath/SubtractThe first less the others.
× Multiplymath/MultiplyMultiplies them.
÷ Dividemath/DivideThe first divided by the others
whole ÷math/DivideWholeA divided by B rounded down to a whole number
remaindermath/RemainderWhat is left of A after taking B as many times as it goes
smallermath/MinThe smallest of them.
biggermath/MaxThe biggest of them.
powermath/PowerA to the power B

+ Add

Adds them up: whole numbers stay whole, a number makes a number, positions and colours go by their parts. Given text, joins it. Takes more inputs.

+
Does
A value: worked out when a node wired to it asks
Runs
On every machine
In a file
math/Add
Drawn
small, as +
Inputs
more with + Add pin on the node, at most 16
  • inaany kind, the same as its other T pins

    The first.

  • inbany kind, the same as its other T pins

    The next.

  • outresultany kind, the same as its other T pins

    The sum.

− Subtract

The first less the others. Of two positions: the way from b to a.

−
Does
A value: worked out when a node wired to it asks
Runs
On every machine
In a file
math/Subtract
Drawn
small, as −
Inputs
more with + Add pin on the node, at most 16
  • inaany kind, the same as its other T pins

    Taken from.

  • inbany kind, the same as its other T pins

    Taken off.

  • outresultany kind, the same as its other T pins

    What is left.

× Multiply

Multiplies them. A position or a colour times a number is made bigger or smaller.

×
Does
A value: worked out when a node wired to it asks
Runs
On every machine
In a file
math/Multiply
Drawn
small, as ×
Inputs
more with + Add pin on the node, at most 16
  • inaany kind, the same as its other T pins

    The first.

  • inbany kind, the same as its other T pins

    The next.

  • outresultany kind, the same as its other T pins

    The product.

÷ Divide

The first divided by the others: 7 / 2 is 3.5. Dividing by 0 gives 0.

÷
Does
A value: worked out when a node wired to it asks
Runs
On every machine
In a file
math/Divide
Drawn
small, as ÷
Inputs
more with + Add pin on the node, at most 16
  • inaany kind, the same as its other T pins

    Divided.

  • inbany kind, the same as its other T pins

    Divided by.

  • outresultany kind, the same as its other T pins

    The share.

whole ÷

A divided by B rounded down to a whole number: 7 / 2 is 3. Dividing by 0 gives 0.

÷
Does
A value: worked out when a node wired to it asks
Runs
On every machine
In a file
math/DivideWhole
Drawn
small, as ÷
  • inaa whole number

    Divided.

  • inba whole number

    Divided by.

  • outresulta whole number

    The whole share.

remainder

What is left of A after taking B as many times as it goes: 7 and 3 leave 1. Never less than 0.

%
Does
A value: worked out when a node wired to it asks
Runs
On every machine
In a file
math/Remainder
Drawn
small, as %
  • inaany kind, the same as its other T pins

    Divided.

  • inbany kind, the same as its other T pins

    Divided by.

  • outresultany kind, the same as its other T pins

    Left over.

smaller

The smallest of them.

MIN
Does
A value: worked out when a node wired to it asks
Runs
On every machine
In a file
math/Min
Drawn
small, as MIN
Inputs
more with + Add pin on the node, at most 16
  • inaany kind, the same as its other T pins

    One.

  • inbany kind, the same as its other T pins

    Another.

  • outresultany kind, the same as its other T pins

    The smallest.

bigger

The biggest of them.

MAX
Does
A value: worked out when a node wired to it asks
Runs
On every machine
In a file
math/Max
Drawn
small, as MAX
Inputs
more with + Add pin on the node, at most 16
  • inaany kind, the same as its other T pins

    One.

  • inbany kind, the same as its other T pins

    Another.

  • outresultany kind, the same as its other T pins

    The biggest.

power

A to the power B: 2 and 3 make 8.

^
Does
A value: worked out when a node wired to it asks
Runs
On every machine
In a file
math/Power
Drawn
small, as ^
  • inaany kind, the same as its other T pins

    The base.

  • inbany kind, the same as its other T pins

    The power.

  • outresultany kind, the same as its other T pins

    The result.