Reference
Math
Outputs the result of arithmetic on two numbers.
- Category
- Data
- Topics
- Scheduler
01
Ports
Mathdata
- Anumber
- Bnumber
- Resultnumber
Ports
Control
Data
Data types
Data types
string
number
bool
Strings accept any data input.
Numbers accept boolean input.
02
Fields
| Field | What it does | Default | Limits |
|---|---|---|---|
| A | The first number; a wired A replaces it. | 0 |
None |
| Operator | The calculation to perform. | + add |
|
| B | The second number; a wired B replaces it. | 0 |
Cannot be 0 for divide or mod. |
03
What a run does
This block has no control ports.
It runs when a block that uses its
Result runs.
A wired A or B replaces its field.
The result is worked out once per run.
| Operator | Result |
|---|---|
+ add |
A plus B. |
- subtract |
A minus B. |
× multiply |
A times B. |
÷ divide |
A divided by B. |
% mod |
The remainder of A divided by B, after both have their decimals cut off. |
Δ difference |
The gap between A and B, which is not negative. |
Dividing, or taking the remainder, with B at 0 sets no output.
No error is
shown, and the block that would use the result uses its own field instead.