Ask AI
Skip to main content

Subtract 1 number from another

Function: Subtract 1 number from another

This action allows you to calculate the difference between two numbers by subtracting the second number from the first. It's useful for various calculations where you need to find out 'how much is left' or 'what's the difference' between two numerical values.

Input,

  • Left argument: The initial number from which you want to subtract. (Type: NUMBER, Required)
  • Right argument: The number you want to subtract from the first number. (Type: NUMBER, Required)

Output,

  • Result: The variable that will store the calculated difference after the subtraction. (Type: NUMBER)

Execution Flow,

Real-Life Examples,

  1. Calculating Remaining Inventory

    • Inputs:
      • Left argument: 150 (Initial Stock)
      • Right argument: 45 (Items Sold)
    • Result: The 'Result' variable will hold 105, representing the remaining items in stock.
  2. Determining Discount Amount

    • Inputs:
      • Left argument: 100 (Original Price)
      • Right argument: 80 (Sale Price)
    • Result: The 'Result' variable will hold 20, indicating a discount of $20.
  3. Tracking Project Budget Usage

    • Inputs:
      • Left argument: 5000 (Allocated Budget)
      • Right argument: 3200 (Expenses Incurred)
    • Result: The 'Result' variable will hold 1800, showing the remaining budget for the project.