Ask AI
Skip to main content

Add 2 numbers

Function: Add 2 numbers

This function allows you to easily add two numbers together. It's perfect for calculations where you need to combine two numerical values to get a total.

Input

  • Left argument (NUMBER, Required): The first number you want to add.
  • Right argument (NUMBER, Required): The second number you want to add.

Output

  • The sum variable name (NUMBER): The total result of adding the two numbers. This output will be stored in a variable with the name you provide.

Execution Flow

Real-Life Examples

Here are some practical ways you can use the "Add 2 numbers" function in your applications:

Example 1: Calculating Total Order Value

Imagine you're building an e-commerce application and want to calculate the total cost of an order before applying discounts.

  • Inputs:
    • Left argument: 50.00 (Cost of Item A)
    • Right argument: 25.50 (Cost of Item B)
    • The sum variable name: TotalOrderCost
  • Result: The application calculates 50.00 + 25.50 and stores the value 75.50 in a variable named TotalOrderCost.

Example 2: Tracking Project Hours

You're managing a project and need to sum up the hours spent by two different team members on a task.

  • Inputs:
    • Left argument: 8 (Hours spent by Team Member 1)
    • Right argument: 4.5 (Hours spent by Team Member 2)
    • The sum variable name: TaskTotalHours
  • Result: The function adds 8 + 4.5 and saves 12.5 into a variable called TaskTotalHours, which can then be used for reporting.

Example 3: Budget Allocation

You're planning a budget and need to combine funds from two different sources for a specific category.

  • Inputs:
    • Left argument: 1500 (Funds from Department A)
    • Right argument: 750 (Funds from Department B)
    • The sum variable name: MarketingBudget
  • Result: The function calculates 1500 + 750 and assigns the value 2250 to the MarketingBudget variable, making it available for further budget calculations.