Subtraction
This node subtracts the second number from the first number.
The Subtraction node performs mathematical subtraction with validation and error handling.
The Subtraction node takes two numeric inputs and calculates the difference (first number minus second number). It includes built-in validation to ensure inputs are valid numbers and results stay within bounds.
Numbers
| Data | Description |
|---|
| First Number | The minuend (number to subtract from, default: 0) |
| Second Number | The subtrahend (number to subtract, default: 0) |
Actions
| Signal | Description |
|---|
| Do | Triggers the subtraction calculation |
Outputs
| Data | Description |
|---|
| Result | The difference between the two numbers |
| Signal | Description |
|---|
| Done | Triggered when the calculation is complete |
Usage
Example Use Cases
- Countdown Operations: Remaining time, decreasing values
- Financial Calculations: Balance after withdrawals, cost differences
- Game Development: Health reduction, score penalties
- Data Processing: Finding differences between measurements
Examples
| First Number | Second Number | Result |
|---|
| 10 | 3 | 7 |
| 5 | 8 | -3 |
| 0 | 5 | -5 |
| -2 | -7 | 5 |