Maximum of two numbers
Function: Maximum of two numbers
This action helps you find the largest value between two numbers. It's useful when you need to compare two numerical values and proceed with the higher one in your business logic.
Input,
- First number: The first number you want to compare.
- Second number: The second number you want to compare.
Output,
- Result: A variable that will store the highest number found between the two inputs.
Execution Flow,
Real-Life Examples,
-
Comparing Sales Figures:
- Scenario: You want to know which of two sales campaigns generated more revenue.
- Inputs:
First number:1500.50(Revenue from Campaign A)Second number:1200.75(Revenue from Campaign B)
- Result: The
Resultvariable will hold1500.50, indicating Campaign A had higher revenue.
-
Inventory Stock Check:
- Scenario: You have two warehouses and want to find the maximum stock of a particular item available across both.
- Inputs:
First number:500(Stock in Warehouse 1)Second number:750(Stock in Warehouse 2)
- Result: The
Resultvariable will hold750, showing the highest stock level.
-
Project Budget Allocation:
- Scenario: A project has two potential funding sources, and you need to determine the maximum amount available from either source.
- Inputs:
First number:10000(Funding from Source X)Second number:8500(Funding from Source Y)
- Result: The
Resultvariable will hold10000, representing the largest available budget.