Ask AI
Skip to main content

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,

  1. 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 Result variable will hold 1500.50, indicating Campaign A had higher revenue.
  2. 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 Result variable will hold 750, showing the highest stock level.
  3. 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 Result variable will hold 10000, representing the largest available budget.