Actions
Math Input » History » Revision 1
Revision 1/2
| Next »
Adam Klama, 06/21/2026 02:27 PM
Math Input¶
Overview¶
A Math Input combines two inputs with a single maths or bitwise
operation and reports the result as a new input. Despite the name it can divide,
multiply, add, subtract, or do bitwise AND / OR / XOR. Use it to derive a value —
a ratio, a sum, a difference — from two existing channels.
Prerequisites & hardware¶
You need:
- A first operand input (the dividend) — referenced by alias.
- A second operand input (the divider) — referenced by alias.
Either operand can point at a Constant Value Input if
one side is a fixed number.
Add it in the app¶
- Add a new input and choose Math / Divide Input as the type.
- Choose the two source inputs.
- Give it a clear alias (e.g.
Gear Ratio). - Pick the operation, set the multiplier, and set the infinity value.
Settings reference¶
| Setting | Meaning | Unit | Range / values | Notes |
|---|---|---|---|---|
| First operand | The first input (the dividend in a divide) | — | an existing input (by alias) | Left-hand side of the operation. |
| Second operand | The second input (the divider in a divide) | — | an existing input (by alias) | Right-hand side of the operation. |
| Operation | The maths/bitwise operation applied | — |
Divide, Multiply, Add, Subtract, And, Or, Xor
|
And / Or / Xor are bitwise, not logical. |
| Multiplier | The result is multiplied by this | — | sint32 | Use it to keep integer precision — e.g. 100 to express a ratio as hundredths. Set 1 for no scaling. |
| Infinity value | Value returned instead of dividing by zero | result's unit | sint32 | Used when the second operand is 0 in a Divide. Guards against divide-by-zero. |
Formula: the result is (first OP second) * multiplier. For example with
Divide and a multiplier of 100, dividing 3000 by 1500 reports 200
(i.e. 2.00).
Common settings¶
Math / Divide Input also uses the shared setting — alias. See Common IO Settings.
Example — engine-to-output speed ratio¶
- Type Math / Divide Input, alias
Speed Ratio. -
First operand =
Engine Speed, Second operand =Output Speed. -
Operation
Divide. -
Multiplier
100so the ratio is reported in hundredths (2.50 reads as
250). -
Infinity value
0so a stationary output (divider = 0) reports0
instead of faulting.
Troubleshooting¶
-
Result is always the infinity value: the second operand is
0(or near it)
in a divide — check that source input. -
Result looks rounded / always whole: these are integer maths; raise the
multiplier (e.g.*100) to keep fractional precision. -
And / Or / Xor gives odd numbers: remember they operate bit by bit, not
as true/false — use a Compare Input for logical conditions.
Related¶
- Constant Value Input — supply a fixed operand.
- Map Input — reshape a single input through a curve.
- Compare Input — turn a derived value into a true/false.
Updated by Adam Klama 1 day ago · 2 revisions