Skip to main content

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.

Inputs

Numbers

DataDescription
First NumberThe minuend (number to subtract from, default: 0)
Second NumberThe subtrahend (number to subtract, default: 0)

Actions

SignalDescription
DoTriggers the subtraction calculation

Outputs

DataDescription
ResultThe difference between the two numbers
SignalDescription
DoneTriggered when the calculation is complete

Usage

Example Use Cases

  1. Countdown Operations: Remaining time, decreasing values
  2. Financial Calculations: Balance after withdrawals, cost differences
  3. Game Development: Health reduction, score penalties
  4. Data Processing: Finding differences between measurements

Examples

First NumberSecond NumberResult
1037
58-3
05-5
-2-75