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
- Left argument:
- Result: The application calculates
50.00 + 25.50and stores the value75.50in a variable namedTotalOrderCost.
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
- Left argument:
- Result: The function adds
8 + 4.5and saves12.5into a variable calledTaskTotalHours, 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
- Left argument:
- Result: The function calculates
1500 + 750and assigns the value2250to theMarketingBudgetvariable, making it available for further budget calculations.